From 30104695629e11e98050d9762e12285bec44637e Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 10 Oct 2022 07:16:15 +0800 Subject: vim-patch:9.0.0706: :help in a narrow window always opens at the top (#20559) Problem: :help in a narrow window always opens at the top. Solution: Respect 'splitbelow'. (closes vim/vim#11319) https://github.com/vim/vim/commit/28f7e701b7857cfc5ab5531ee7ac26e2542ad662 --- src/nvim/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/help.c b/src/nvim/help.c index a24b17e34e..7c61a56785 100644 --- a/src/nvim/help.c +++ b/src/nvim/help.c @@ -149,7 +149,7 @@ void 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; -- cgit