fix(input): put modifiers back into typeahead buffer when needed

This commit is contained in:
zeertzjq
2022-01-23 05:58:32 +08:00
parent 7717f38d3f
commit 818456470c
6 changed files with 54 additions and 25 deletions

View File

@@ -1010,7 +1010,7 @@ static int normal_execute(VimState *state, int key)
// restart automatically.
// Insert the typed character in the typeahead buffer, so that it can
// be mapped in Insert mode. Required for ":lmap" to work.
ins_char_typebuf(s->c);
ins_char_typebuf(s->c, mod_mask);
if (restart_edit != 0) {
s->c = 'd';
} else {