mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:8.2.4418: crash when using special multi-byte character
Problem: Crash when using special multi-byte character.
Solution: Don't use isalpha() for an arbitrary character.
5921aeb574
Rename vim_isalpha to mb_isalpha.
This commit is contained in:
@@ -1317,6 +1317,12 @@ bool mb_isupper(int a)
|
||||
return mb_tolower(a) != a;
|
||||
}
|
||||
|
||||
bool mb_isalpha(int a)
|
||||
FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
return mb_islower(a) || mb_isupper(a);
|
||||
}
|
||||
|
||||
static int utf_strnicmp(const char_u *s1, const char_u *s2, size_t n1, size_t n2)
|
||||
{
|
||||
int c1, c2, cdiff;
|
||||
|
Reference in New Issue
Block a user