fix(input): fix macro recording with ALT and special key (#18917)

This commit is contained in:
zeertzjq
2022-06-10 17:13:57 +08:00
committed by GitHub
parent 6eaf10502c
commit e15d31b530
2 changed files with 23 additions and 1 deletions

View File

@@ -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;