commit | 28f7e701b7857cfc5ab5531ee7ac26e2542ad662 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Oct 09 15:54:53 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Oct 09 15:54:53 2022 +0100 |
tree | fc914411e60c5f06fabc0d91c9e589210bb2d12e | |
parent | 13845c48d8ca96e0fa5bb237db519dd00045742f [diff] [blame] |
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)
diff --git a/src/help.c b/src/help.c index 9dbd256..4d1efe8 100644 --- a/src/help.c +++ b/src/help.c
@@ -150,7 +150,7 @@ 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;