1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2022-02-19 11:20:12 +00:00
parent e89bfd212b
commit 5921aeb574
5 changed files with 18 additions and 2 deletions

View File

@@ -1644,6 +1644,12 @@ vim_isupper(int c)
return isupper(c);
}
int
vim_isalpha(int c)
{
return vim_islower(c) || vim_isupper(c);
}
int
vim_toupper(int c)
{