diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-10 07:16:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 07:16:15 +0800 |
commit | 30104695629e11e98050d9762e12285bec44637e (patch) | |
tree | 2f9b98c9324472b1ceca511baa21eae56c2ae840 /src/nvim/help.c | |
parent | 2bce99b978fc8d39767eb2704062bd9f4a412438 (diff) | |
download | rneovim-30104695629e11e98050d9762e12285bec44637e.tar.gz rneovim-30104695629e11e98050d9762e12285bec44637e.tar.bz2 rneovim-30104695629e11e98050d9762e12285bec44637e.zip |
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 (limited to 'src/nvim/help.c')
-rw-r--r-- | src/nvim/help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/help.c b/src/nvim/help.c index a24b17e34e..7c61a56785 100644 --- 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; |