diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-25 21:40:46 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-29 15:51:04 +0800 |
commit | 66747f18ded775e2c0b6bac73cee18a3752086af (patch) | |
tree | d0a25e517a61819d379115c7237080e284e90beb /src/nvim/normal.c | |
parent | 82a13a78bb26e91d9f81231ab5e725129cfd8757 (diff) | |
download | rneovim-66747f18ded775e2c0b6bac73cee18a3752086af.tar.gz rneovim-66747f18ded775e2c0b6bac73cee18a3752086af.tar.bz2 rneovim-66747f18ded775e2c0b6bac73cee18a3752086af.zip |
vim-patch:8.2.0839: dropping modifier when putting a character back in typeahead
Problem: Dropping modifier when putting a character back in typeahead.
Solution: Add modifier to ins_char_typebuf(). (closes vim/vim#6158)
https://github.com/vim/vim/commit/b42c0d54279b1fdb79652db0c84171e213458809
Vim's test doesn't seem to work properly as the hit-enter prompt seems
to be delayed. Add a Lua screen test.
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 73ea995d8f..a04316f5e4 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -995,7 +995,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. - int len = ins_char_typebuf(s->c, mod_mask); + int len = ins_char_typebuf(vgetc_char, vgetc_mod_mask); // When recording and gotchars() was called the character will be // recorded again, remove the previous recording. |