aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-25 21:40:46 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-29 15:51:04 +0800
commit66747f18ded775e2c0b6bac73cee18a3752086af (patch)
treed0a25e517a61819d379115c7237080e284e90beb /src/nvim/terminal.c
parent82a13a78bb26e91d9f81231ab5e725129cfd8757 (diff)
downloadrneovim-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/terminal.c')
-rw-r--r--src/nvim/terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index fd870361c7..5f536c0b7a 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -1348,7 +1348,7 @@ static bool send_mouse_event(Terminal *term, int c)
}
end:
- ins_char_typebuf(c, mod_mask);
+ ins_char_typebuf(vgetc_char, vgetc_mod_mask);
return true;
}