diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-05 19:01:37 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-05 19:01:37 +0100 |
commit | e3a529bc877909a9eccf792461050b4f6737ed33 (patch) | |
tree | ad3718402e376ba7ff5a21e7761e8719cbab0dc1 /src/getchar.c | |
parent | 6574577cacd393ab7591fc776ea060eebc939e55 (diff) | |
download | vim-git-e3a529bc877909a9eccf792461050b4f6737ed33.tar.gz |
patch 8.2.5058: input() does not handle composing characters properlyv8.2.5058
Problem: input() does not handle composing characters properly.
Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
(closes #10527)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index 55fad1cb2..03d90ac87 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -669,7 +669,7 @@ stuffReadbuffSpec(char_u *s) } else { - c = mb_ptr2char_adv(&s); + c = mb_cptr2char_adv(&s); if (c == CAR || c == NL || c == ESC) c = ' '; stuffcharReadbuff(c); |