mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
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)
28f7e701b7
This commit is contained in:
parent
2bce99b978
commit
3010469562
@ -149,7 +149,7 @@ void 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user