diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-06-10 18:16:34 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-10 18:16:34 +0200 |
commit | d603e956095b8bc79526476138fe80b1e0be9b8d (patch) | |
tree | 668f0b03abbb7d03d105953f7e530f74d4dcab69 /src/terminal.c | |
parent | dfc21db0b0f9c61d66aeefc02ec4c06ec645bd09 (diff) |
patch 9.1.0473: term_start() does not clear vertical modifierv9.1.0473
Problem: term_start() does not clear vertical modifier
Solution: Clear the flag after splitting the window
(Yegappan Lakshmanan)
closes: #14953
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index 25a6a5dd76..28e1abfec3 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -538,9 +538,15 @@ term_start( split_ea.addr_count = 1; } + int cmod_split_modified = FALSE; if (vertical) + { cmdmod.cmod_split |= WSP_VERT; + cmod_split_modified = TRUE; + } ex_splitview(&split_ea); + if (vertical && cmod_split_modified) + cmdmod.cmod_split &= ~WSP_VERT; if (curwin == old_curwin) { // split failed |