diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-19 11:20:12 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-19 11:20:12 +0000 |
commit | 5921aeb5741fc6e84c870d68c7c35b93ad0c9f87 (patch) | |
tree | 4021a330986b5974383318a43a0e440b6bfb7503 /src/charset.c | |
parent | e89bfd212b21c227f026e467f882c62cdd6e642d (diff) | |
download | vim-git-5921aeb5741fc6e84c870d68c7c35b93ad0c9f87.tar.gz |
patch 8.2.4418: crash when using special multi-byte characterv8.2.4418
Problem: Crash when using special multi-byte character.
Solution: Don't use isalpha() for an arbitrary character.
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c index 2ecb96c89..ed09bd23f 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1645,6 +1645,12 @@ vim_isupper(int c) } int +vim_isalpha(int c) +{ + return vim_islower(c) || vim_isupper(c); +} + + int vim_toupper(int c) { if (c <= '@') |