commit 30104695629e11e98050d9762e12285bec44637e
parent 2bce99b978fc8d39767eb2704062bd9f4a412438
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 10 Oct 2022 07:16:15 +0800
vim-patch:9.0.0706: :help in a narrow window always opens at the top (#20559)
Problem: :help in a narrow window always opens at the top.
Solution: Respect 'splitbelow'. (closes vim/vim#11319)
https://github.com/vim/vim/commit/28f7e701b7857cfc5ab5531ee7ac26e2542ad662
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/help.c b/src/nvim/help.c
@@ -149,7 +149,7 @@ void 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;