aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 2a5b8b00d4..0a848c4676 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1122,6 +1122,8 @@ static void gotchars(const uint8_t *chars, size_t len)
pending--;
}
+ // When receiving a special key sequence, store it until we have all
+ // the bytes and we can decide what to do with it.
if ((pending == 0 || in_mbyte) && c == K_SPECIAL) {
pending += 2;
if (!in_mbyte) {