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:
committed by
Christian Brabandt
parent
971378eed9
commit
4877cb411f
@@ -541,11 +541,12 @@ term_start(
|
|||||||
int cmod_split_modified = FALSE;
|
int cmod_split_modified = FALSE;
|
||||||
if (vertical)
|
if (vertical)
|
||||||
{
|
{
|
||||||
|
if (!(cmdmod.cmod_split & WSP_VERT))
|
||||||
|
cmod_split_modified = TRUE;
|
||||||
cmdmod.cmod_split |= WSP_VERT;
|
cmdmod.cmod_split |= WSP_VERT;
|
||||||
cmod_split_modified = TRUE;
|
|
||||||
}
|
}
|
||||||
ex_splitview(&split_ea);
|
ex_splitview(&split_ea);
|
||||||
if (vertical && cmod_split_modified)
|
if (cmod_split_modified)
|
||||||
cmdmod.cmod_split &= ~WSP_VERT;
|
cmdmod.cmod_split &= ~WSP_VERT;
|
||||||
if (curwin == old_curwin)
|
if (curwin == old_curwin)
|
||||||
{
|
{
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
475,
|
||||||
/**/
|
/**/
|
||||||
474,
|
474,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user