summaryrefslogtreecommitdiffstats
path: root/src/terminal.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2024-06-11 19:18:12 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-11 19:18:12 +0200
commit4877cb411f00ebf546417e9a71ab493916b50955 (patch)
treecbe06134306cb7fa467b1b56be7e9e0ee1cce0b7 /src/terminal.c
parent971378eed9285f3e95e208b698af9076a5f0d435 (diff)
patch 9.1.0475: cmod_split modifier is always reset in term_start()v9.1.0475
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>
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 28e1abfec3..07b69c6a7c 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)
{