forked from aniani/vim
patch 8.2.4845: duplicate code
Problem: Duplicate code. Solution: Move code below if/else. (closes #10314)
This commit is contained in:
@@ -673,11 +673,6 @@ get_mode(char_u *buf)
|
||||
{
|
||||
buf[i++] = 'R';
|
||||
buf[i++] = 'v';
|
||||
|
||||
if (ins_compl_active())
|
||||
buf[i++] = 'c';
|
||||
else if (ctrl_x_mode_not_defined_yet())
|
||||
buf[i++] = 'x';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -685,13 +680,13 @@ get_mode(char_u *buf)
|
||||
buf[i++] = 'R';
|
||||
else
|
||||
buf[i++] = 'i';
|
||||
}
|
||||
|
||||
if (ins_compl_active())
|
||||
buf[i++] = 'c';
|
||||
else if (ctrl_x_mode_not_defined_yet())
|
||||
buf[i++] = 'x';
|
||||
}
|
||||
}
|
||||
else if ((State & CMDLINE) || exmode_active)
|
||||
{
|
||||
buf[i++] = 'c';
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4845,
|
||||
/**/
|
||||
4844,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user