mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
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.
This commit is contained in:
@@ -1078,7 +1078,7 @@ static int normal_execute(VimState *state, int key)
|
||||
// When "restart_edit" is set fake a "d"elete command, Insert mode will 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(vgetc_char, vgetc_mod_mask);
|
||||
int len = ins_char_typebuf(vgetc_char, vgetc_mod_mask, true);
|
||||
|
||||
// When recording and gotchars() was called the character will be
|
||||
// recorded again, remove the previous recording.
|
||||
|
Reference in New Issue
Block a user