1
0
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:
zeertzjq
2022-04-29 11:29:54 +01:00
committed by Bram Moolenaar
parent 758a8d1999
commit 590f365f91
2 changed files with 7 additions and 10 deletions

View File

@@ -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,12 +680,12 @@ 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';
}
if (ins_compl_active())
buf[i++] = 'c';
else if (ctrl_x_mode_not_defined_yet())
buf[i++] = 'x';
}
else if ((State & CMDLINE) || exmode_active)
{