aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/getchar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 6b716c2e1f..9f223bf750 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1007,6 +1007,7 @@ int ins_char_typebuf(int c, int modifier)
buf[len + 1] = (char_u)K_SECOND(c);
buf[len + 2] = (char_u)K_THIRD(c);
buf[len + 3] = NUL;
+ len += 3;
} else {
char_u *end = add_char2buf(c, buf + len);
*end = NUL;