Fix missing CursorHoldI events (#3758)

Fixes https://github.com/neovim/neovim/issues/3757.
This commit is contained in:
Daniel Hahler
2019-07-16 01:35:43 +02:00
committed by GitHub
parent 046deeeaa1
commit b06f29318d
2 changed files with 34 additions and 1 deletions

View File

@@ -649,7 +649,9 @@ static int insert_execute(VimState *state, int key)
s->c = key;
// Don't want K_EVENT with cursorhold for the second key, e.g., after CTRL-V.
did_cursorhold = true;
if (key != K_EVENT) {
did_cursorhold = true;
}
if (p_hkmap && KeyTyped) {
s->c = hkmap(s->c); // Hebrew mode mapping