patch 9.1.0475: cmod_split modifier is always reset in term_start() Commit: https://github.com/vim/vim/commit/4877cb411f00ebf546417e9a71ab493916b50955 Author: Yegappan Lakshmanan <yegap...@yahoo.com> Date: Tue Jun 11 19:18:12 2024 +0200
patch 9.1.0475: cmod_split modifier is always reset in term_start() Problem: cmod_split modifier is always reset in term_start() Solution: only clear the WSP_VERT flag, if it is not already in cmdmod.cmod_split (Yegappan Lakshmanan) closes: #14961 Signed-off-by: Yegappan Lakshmanan <yegap...@yahoo.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/terminal.c b/src/terminal.c index 28e1abfec..07b69c6a7 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -541,11 +541,12 @@ term_start( int cmod_split_modified = FALSE; if (vertical) { + if (!(cmdmod.cmod_split & WSP_VERT)) + cmod_split_modified = TRUE; cmdmod.cmod_split |= WSP_VERT; - cmod_split_modified = TRUE; } ex_splitview(&split_ea); - if (vertical && cmod_split_modified) + if (cmod_split_modified) cmdmod.cmod_split &= ~WSP_VERT; if (curwin == old_curwin) { diff --git a/src/version.c b/src/version.c index fc4490d6c..8d8e7f59f 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 475, /**/ 474, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sH5Js-006hYt-EB%40256bit.org.