aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-23 05:58:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-01-23 05:58:32 +0800
commit818456470c0ce0d463b0be82e9c35eb77cc65f19 (patch)
tree93eb2d32451041504585adf4189a692141c8aa1b /src/nvim/message.c
parent7717f38d3f81cc739ef2b37829558d3d9eba9591 (diff)
downloadrneovim-818456470c0ce0d463b0be82e9c35eb77cc65f19.tar.gz
rneovim-818456470c0ce0d463b0be82e9c35eb77cc65f19.tar.bz2
rneovim-818456470c0ce0d463b0be82e9c35eb77cc65f19.zip
fix(input): put modifiers back into typeahead buffer when needed
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 39b023132e..17ccef37f1 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1215,7 +1215,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);
+ ins_char_typebuf(c, mod_mask);
do_redraw = true; // need a redraw even though there is
// typeahead
}
@@ -3497,7 +3497,7 @@ int do_dialog(int type, char_u *title, char_u *message, char_u *buttons, int dfl
}
if (c == ':' && ex_cmd) {
retval = dfltbutton;
- ins_char_typebuf(':');
+ ins_char_typebuf(':', 0);
break;
}