summaryrefslogtreecommitdiff
path: root/src
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
parent13845c48d8ca96e0fa5bb237db519dd00045742f (diff)
downloadvim-git-28f7e701b7857cfc5ab5531ee7ac26e2542ad662.tar.gz
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')
-rw-r--r--src/help.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/help.c b/src/help.c
index 9dbd2561f..4d1efe8fe 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;
diff --git a/src/version.c b/src/version.c
index 84d8e2bb2..9adceae12 100644
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 706,
+/**/
705,
/**/
704,