aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-16 01:35:43 +0200
committerGitHub <noreply@github.com>2019-07-16 01:35:43 +0200
commitb06f29318df5adab76bba32b89b9af22043a39cb (patch)
tree3f31cd9de6460a7d5eacc36a9f7f8a2d485e1e4a /src
parent046deeeaa18142455face461d2a5b8468dddae50 (diff)
downloadrneovim-b06f29318df5adab76bba32b89b9af22043a39cb.tar.gz
rneovim-b06f29318df5adab76bba32b89b9af22043a39cb.tar.bz2
rneovim-b06f29318df5adab76bba32b89b9af22043a39cb.zip
Fix missing CursorHoldI events (#3758)
Fixes https://github.com/neovim/neovim/issues/3757.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 57c4a5395c..6a37c52e3f 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -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