changeset 30743:8f443f987f47 v9.0.0706

patch 9.0.0706: :help in a narrow window always opens at the top Commit: https://github.com/vim/vim/commit/28f7e701b7857cfc5ab5531ee7ac26e2542ad662 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 9 15:54:53 2022 +0100 patch 9.0.0706: :help in a narrow window always opens at the top Problem: :help in a narrow window always opens at the top. Solution: Respect 'splitbelow'. (closes https://github.com/vim/vim/issues/11319)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Oct 2022 17:00:07 +0200
parents 67e296324bd5
children 74b682ee7339
files src/help.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/help.c
+++ b/src/help.c
@@ -150,7 +150,7 @@ ex_help(exarg_T *eap)
 	    n = WSP_HELP;
 	    if (cmdmod.cmod_split == 0 && curwin->w_width != Columns
 						  && curwin->w_width < 80)
-		n |= WSP_TOP;
+		n |= p_sb ? WSP_BOT : WSP_TOP;
 	    if (win_split(0, n) == FAIL)
 		goto erret;
 
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    706,
+/**/
     705,
 /**/
     704,