mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -150,7 +150,7 @@ ex_help(exarg_T *eap)
|
|||||||
n = WSP_HELP;
|
n = WSP_HELP;
|
||||||
if (cmdmod.cmod_split == 0 && curwin->w_width != Columns
|
if (cmdmod.cmod_split == 0 && curwin->w_width != Columns
|
||||||
&& curwin->w_width < 80)
|
&& curwin->w_width < 80)
|
||||||
n |= WSP_TOP;
|
n |= p_sb ? WSP_BOT : WSP_TOP;
|
||||||
if (win_split(0, n) == FAIL)
|
if (win_split(0, n) == FAIL)
|
||||||
goto erret;
|
goto erret;
|
||||||
|
|
||||||
|
@@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
706,
|
||||||
/**/
|
/**/
|
||||||
705,
|
705,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user