]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0475: cmod_split modifier is always reset in term_start() v9.1.0475
authorYegappan Lakshmanan <yegappan@yahoo.com>
Tue, 11 Jun 2024 17:18:12 +0000 (19:18 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 11 Jun 2024 17:18:12 +0000 (19:18 +0200)
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>
src/terminal.c
src/version.c

index 28e1abfec3f01a24d5e7a0a753b86828095fce61..07b69c6a7c639dd9d42fadaad6dd71c9cec04945 100644 (file)
@@ -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)
        {
index fc4490d6c3497a2785fd46c89e150dfcbaeb065f..8d8e7f59fd6cb3b9dc40bc4c262231137b29655d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    475,
 /**/
     474,
 /**/