# HG changeset patch # User Bram Moolenaar # Date 1665327607 -7200 # Node ID 8f443f987f47b2d14df4f53ed484eca6b5c1f787 # Parent 67e296324bd562f673bed63731461ac14f68a4d0 patch 9.0.0706: :help in a narrow window always opens at the top Commit: https://github.com/vim/vim/commit/28f7e701b7857cfc5ab5531ee7ac26e2542ad662 Author: Bram Moolenaar Date: Sun Oct 9 15:54:53 2022 +0100 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 https://github.com/vim/vim/issues/11319) diff --git a/src/help.c b/src/help.c --- 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 --- 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,