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/message.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/message.c')
-rw-r--r-- | src/nvim/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 6708001495..90af920396 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1214,7 +1214,7 @@ void wait_return(int redraw) } else if (vim_strchr((char_u *)"\r\n ", c) == NULL && c != Ctrl_C) { // Put the character back in the typeahead buffer. Don't use the // stuff buffer, because lmaps wouldn't work. - ins_char_typebuf(c, mod_mask); + ins_char_typebuf(vgetc_char, vgetc_mod_mask); do_redraw = true; // need a redraw even though there is // typeahead } |