1
0
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:
zeertzjq
2021-10-03 15:19:14 +01:00
committed by Bram Moolenaar
parent 27fef59dd1
commit cc8cd44533
4 changed files with 53 additions and 5 deletions

View File

@@ -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())