]> granicus.if.org Git - vim/commitdiff
patch 9.0.0706: :help in a narrow window always opens at the top v9.0.0706
authorBram Moolenaar <Bram@vim.org>
Sun, 9 Oct 2022 14:54:53 +0000 (15:54 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 9 Oct 2022 14:54:53 +0000 (15:54 +0100)
Problem:    :help in a narrow window always opens at the top.
Solution:   Respect 'splitbelow'. (closes #11319)

src/help.c
src/version.c

index 9dbd2561f564260cb158c26c957bcbf794700afa..4d1efe8fe431f77014ed744770cb72087850a58a 100644 (file)
@@ -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;
 
index 84d8e2bb2c55270affb80d2e0832dcfeaa5bd82c..9adceae12dd399bb7541a0987043a7db89f042c1 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    706,
 /**/
     705,
 /**/