diff options
-rw-r--r-- | src/nvim/getchar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 563608dd1d..158328a7d2 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -439,6 +439,9 @@ void flush_buffers(int flush_typeahead) ; typebuf.tb_off = MAXMAPLEN; typebuf.tb_len = 0; + // Reset the flag that text received from a client or from feedkeys() + // was inserted in the typeahead buffer. + typebuf_was_filled = false; } else { /* remove mapped characters at the start only */ typebuf.tb_off += typebuf.tb_maplen; typebuf.tb_len -= typebuf.tb_maplen; |