diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-07-28 16:51:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-28 16:51:53 +0200 |
commit | eaf3f36168f85c8e0ab7083cd996b9fbe937045d (patch) | |
tree | 7ec14ec4c431cda36ecada140c2552edb92fc4ae /src/misc1.c | |
parent | 6868634abd6a49b2dfd3a994a6da7d5911457a37 (diff) |
patch 8.2.3236: mode() does not indicate using CTRL-O in Select modev8.2.3236
Problem: mode() does not indicate using CTRL-O in Select mode.
Solution: Use "vs" and similar. (closes #8640)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c index 7d7f022f1e..9708502cad 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -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) |