summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-10-03 15:19:14 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-03 15:19:14 +0100
commitcc8cd4453332276d55b4a1109eace5785a4f319d (patch)
tree106d521023ab67978d1ea27908b9c881ca83b20d /src/misc1.c
parent27fef59dd1dd75f50c366f7f616ffa4451560452 (diff)
downloadvim-git-cc8cd4453332276d55b4a1109eace5785a4f319d.tar.gz
patch 8.2.3466: completion submode not indicated for virtual replacev8.2.3466
Problem: Completion submode not indicated for virtual replace. Solution: Add submode to "Rv". (closes #8945)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 8e21f1ec9..62eba0206 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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())