commit | 5921aeb5741fc6e84c870d68c7c35b93ad0c9f87 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 19 11:20:12 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 19 11:20:12 2022 +0000 |
tree | 4021a330986b5974383318a43a0e440b6bfb7503 | |
parent | e89bfd212b21c227f026e467f882c62cdd6e642d [diff] [blame] |
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.
diff --git a/src/charset.c b/src/charset.c index 2ecb96c..ed09bd2 100644 --- a/src/charset.c +++ b/src/charset.c
@@ -1645,6 +1645,12 @@ } int +vim_isalpha(int c) +{ + return vim_islower(c) || vim_isupper(c); +} + + int vim_toupper(int c) { if (c <= '@')