From 28f7e701b7857cfc5ab5531ee7ac26e2542ad662 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 9 Oct 2022 15:54:53 +0100 Subject: [PATCH] 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) --- src/help.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; diff --git a/src/version.c b/src/version.c index 84d8e2bb2c..9adceae12d 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 706, /**/ 705, /**/