Patch 9.0.0706

5 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 9, 2022, 10:55:44 AM10/9/22
to vim...@googlegroups.com

Patch 9.0.0706
Problem: :help in a narrow window always opens at the top.
Solution: Respect 'splitbelow'. (closes #11319)
Files: src/help.c


*** ../vim-9.0.0705/src/help.c 2022-07-31 18:34:28.238324299 +0100
--- src/help.c 2022-10-09 15:46:16.901093259 +0100
***************
*** 150,156 ****
n = WSP_HELP;
if (cmdmod.cmod_split == 0 && curwin->w_width != Columns
&& curwin->w_width < 80)
! n |= WSP_TOP;
if (win_split(0, n) == FAIL)
goto erret;

--- 150,156 ----
n = WSP_HELP;
if (cmdmod.cmod_split == 0 && curwin->w_width != Columns
&& curwin->w_width < 80)
! n |= p_sb ? WSP_BOT : WSP_TOP;
if (win_split(0, n) == FAIL)
goto erret;

*** ../vim-9.0.0705/src/version.c 2022-10-09 15:25:45.949815094 +0100
--- src/version.c 2022-10-09 15:54:38.964075303 +0100
***************
*** 701,702 ****
--- 701,704 ----
{ /* Add new patch number below this line */
+ /**/
+ 706,
/**/

--
Nothing is impossible for the man who doesn't have to do it.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages