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:
15
src/misc1.c
15
src/misc1.c
@@ -673,11 +673,6 @@ get_mode(char_u *buf)
|
|||||||
{
|
{
|
||||||
buf[i++] = 'R';
|
buf[i++] = 'R';
|
||||||
buf[i++] = 'v';
|
buf[i++] = 'v';
|
||||||
|
|
||||||
if (ins_compl_active())
|
|
||||||
buf[i++] = 'c';
|
|
||||||
else if (ctrl_x_mode_not_defined_yet())
|
|
||||||
buf[i++] = 'x';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -685,12 +680,12 @@ get_mode(char_u *buf)
|
|||||||
buf[i++] = 'R';
|
buf[i++] = 'R';
|
||||||
else
|
else
|
||||||
buf[i++] = 'i';
|
buf[i++] = 'i';
|
||||||
|
|
||||||
if (ins_compl_active())
|
|
||||||
buf[i++] = 'c';
|
|
||||||
else if (ctrl_x_mode_not_defined_yet())
|
|
||||||
buf[i++] = 'x';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ins_compl_active())
|
||||||
|
buf[i++] = 'c';
|
||||||
|
else if (ctrl_x_mode_not_defined_yet())
|
||||||
|
buf[i++] = 'x';
|
||||||
}
|
}
|
||||||
else if ((State & CMDLINE) || exmode_active)
|
else if ((State & CMDLINE) || exmode_active)
|
||||||
{
|
{
|
||||||
|
@@ -746,6 +746,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 */
|
||||||
|
/**/
|
||||||
|
4845,
|
||||||
/**/
|
/**/
|
||||||
4844,
|
4844,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user