1
0
forked from aniani/vim

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>
This commit is contained in:
Yegappan Lakshmanan
2024-06-11 19:18:12 +02:00
committed by Christian Brabandt
parent 971378eed9
commit 4877cb411f
2 changed files with 5 additions and 2 deletions

View File

@@ -541,11 +541,12 @@ term_start(
int cmod_split_modified = FALSE;
if (vertical)
{
cmdmod.cmod_split |= WSP_VERT;
if (!(cmdmod.cmod_split & WSP_VERT))
cmod_split_modified = TRUE;
cmdmod.cmod_split |= WSP_VERT;
}
ex_splitview(&split_ea);
if (vertical && cmod_split_modified)
if (cmod_split_modified)
cmdmod.cmod_split &= ~WSP_VERT;
if (curwin == old_curwin)
{

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
475,
/**/
474,
/**/