changeset 35371:20777092fb6b v9.1.0475

patch 9.1.0475: cmod_split modifier is always reset in term_start() Commit: https://github.com/vim/vim/commit/4877cb411f00ebf546417e9a71ab493916b50955 Author: Yegappan Lakshmanan <yegappan@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 <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 11 Jun 2024 19:30:04 +0200
parents 28c8d7ddaa88
children d8a98b635eea
files src/terminal.c src/version.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
 	{
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    475,
+/**/
     474,
 /**/
     473,