vim-patch:8.2.3466: completion submode not indicated for virtual replace (#15886)

Problem:    Completion submode not indicated for virtual replace.
Solution:   Add submode to "Rv". (closes vim/vim#8945)
cc8cd44533
This commit is contained in:
zeertzjq
2021-10-04 03:04:51 +08:00
committed by GitHub
parent 04b59ebd85
commit 7ba11e06c0
3 changed files with 51 additions and 6 deletions

View File

@@ -161,6 +161,11 @@ char *get_mode(void)
if (State & VREPLACE_FLAG) {
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 {
if (State & REPLACE_FLAG) {
buf[0] = 'R';