diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-10-03 15:19:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-03 15:19:14 +0100 |
commit | cc8cd4453332276d55b4a1109eace5785a4f319d (patch) | |
tree | 106d521023ab67978d1ea27908b9c881ca83b20d /src/misc1.c | |
parent | 27fef59dd1dd75f50c366f7f616ffa4451560452 (diff) | |
download | vim-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.c | 6 |
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()) |