forked from aniani/vim
patch 8.2.3466: completion submode not indicated for virtual replace
Problem: Completion submode not indicated for virtual replace. Solution: Add submode to "Rv". (closes #8945)
This commit is contained in:
@@ -675,6 +675,11 @@ f_mode(typval_T *argvars, typval_T *rettv)
|
||||
{
|
||||
buf[0] = 'R';
|
||||
buf[1] = 'v';
|
||||
|
||||
if (ins_compl_active())
|
||||
buf[2] = 'c';
|
||||
else if (ctrl_x_mode_not_defined_yet())
|
||||
buf[2] = 'x';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -682,6 +687,7 @@ f_mode(typval_T *argvars, typval_T *rettv)
|
||||
buf[0] = 'R';
|
||||
else
|
||||
buf[0] = 'i';
|
||||
|
||||
if (ins_compl_active())
|
||||
buf[1] = 'c';
|
||||
else if (ctrl_x_mode_not_defined_yet())
|
||||
|
Reference in New Issue
Block a user