aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/edit.c2
-rw-r--r--src/nvim/ex_getln.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index eecea03a19..cb5c7023d7 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -638,7 +638,7 @@ static int insert_check(VimState *state)
static int insert_execute(VimState *state, int key)
{
- if (key == K_IGNORE) {
+ if (key == K_IGNORE || key == K_NOP) {
return -1; // get another key
}
InsertState *s = (InsertState *)state;
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index e5f5e5ad87..c09a3c08ef 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -536,7 +536,7 @@ static int command_line_check(VimState *state)
static int command_line_execute(VimState *state, int key)
{
- if (key == K_IGNORE) {
+ if (key == K_IGNORE || key == K_NOP) {
return -1; // get another key
}