diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-31 11:20:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 11:20:05 +0800 |
commit | e1ff2c51cad755d0ddc04a23df23e317d77023ed (patch) | |
tree | a32389bcb708f2b0efed0134ffafc206b527db08 /src/nvim/message.c | |
parent | 12240600f5d2c992aa77bc4592edc16814abfafd (diff) | |
download | rneovim-e1ff2c51cad755d0ddc04a23df23e317d77023ed.tar.gz rneovim-e1ff2c51cad755d0ddc04a23df23e317d77023ed.tar.bz2 rneovim-e1ff2c51cad755d0ddc04a23df23e317d77023ed.zip |
feat(lua): pass keys before mapping to vim.on_key() callback (#28098)
Keys before mapping (i.e. typed keys) are passed as the second argument.
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 5a47908eb6..68a8b8e88b 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1265,7 +1265,7 @@ void wait_return(int redraw) } else if (vim_strchr("\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(vgetc_char, vgetc_mod_mask); + ins_char_typebuf(vgetc_char, vgetc_mod_mask, true); do_redraw = true; // need a redraw even though there is // typeahead } @@ -3431,7 +3431,7 @@ int do_dialog(int type, const char *title, const char *message, const char *butt } if (c == ':' && ex_cmd) { retval = dfltbutton; - ins_char_typebuf(':', 0); + ins_char_typebuf(':', 0, false); break; } |