mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +00:00
vim-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 vim/vim#10527)e3a529bc87
Cherry-pick all of Test_input_func() from patch 8.2.0316. (cherry picked from commit84ed71f319
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
2146a48587
commit
6768784feb
@@ -631,7 +631,7 @@ void stuffReadbuffSpec(const char *s)
|
||||
stuffReadbuffLen(s, 3);
|
||||
s += 3;
|
||||
} else {
|
||||
int c = mb_ptr2char_adv((const char_u **)&s);
|
||||
int c = mb_cptr2char_adv((const char_u **)&s);
|
||||
if (c == CAR || c == NL || c == ESC) {
|
||||
c = ' ';
|
||||
}
|
||||
|
Reference in New Issue
Block a user