summaryrefslogtreecommitdiffstats
path: root/src/help.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-09 15:54:53 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-09 15:54:53 +0100
commit28f7e701b7857cfc5ab5531ee7ac26e2542ad662 (patch)
treefc914411e60c5f06fabc0d91c9e589210bb2d12e /src/help.c
parent13845c48d8ca96e0fa5bb237db519dd00045742f (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.c2
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;