0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #11319)
This commit is contained in:
Bram Moolenaar
2022-10-09 15:54:53 +01:00
parent 13845c48d8
commit 28f7e701b7
2 changed files with 3 additions and 1 deletions

View 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;