mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.5058: input() does not handle composing characters properly
Problem: input() does not handle composing characters properly. Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv(). (closes #10527)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user