1
0
forked from aniani/vim

patch 8.2.3236: mode() does not indicate using CTRL-O in Select mode

Problem:    mode() does not indicate using CTRL-O in Select mode.
Solution:   Use "vs" and similar. (closes #8640)
This commit is contained in:
zeertzjq
2021-07-28 16:51:53 +02:00
committed by Bram Moolenaar
parent 6868634abd
commit eaf3f36168
6 changed files with 22 additions and 1 deletions

View File

@@ -652,7 +652,11 @@ f_mode(typval_T *argvars, typval_T *rettv)
if (VIsual_select)
buf[0] = VIsual_mode + 's' - 'v';
else
{
buf[0] = VIsual_mode;
if (restart_VIsual_select)
buf[1] = 's';
}
}
else if (State == HITRETURN || State == ASKMORE || State == SETWSIZE
|| State == CONFIRM)