diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-09 15:54:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-09 15:54:53 +0100 |
commit | 28f7e701b7857cfc5ab5531ee7ac26e2542ad662 (patch) | |
tree | fc914411e60c5f06fabc0d91c9e589210bb2d12e /src/help.c | |
parent | 13845c48d8ca96e0fa5bb237db519dd00045742f (diff) |
patch 9.0.0706: :help in a narrow window always opens at the topv9.0.0706
Problem: :help in a narrow window always opens at the top.
Solution: Respect 'splitbelow'. (closes #11319)
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/help.c b/src/help.c index 9dbd2561f5..4d1efe8fe4 100644 --- a/src/help.c +++ b/src/help.c @@ -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; |