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/filepath.c | |
parent | e89bfd212b21c227f026e467f882c62cdd6e642d (diff) |
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/filepath.c')
-rw-r--r-- | src/filepath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c index 929fa56a4d..7a5dae441f 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -3626,7 +3626,7 @@ unix_expandpath( else if (path_end >= path + wildoff && (vim_strchr((char_u *)"*?[{~$", *path_end) != NULL || (!p_fic && (flags & EW_ICASE) - && isalpha(PTR2CHAR(path_end))))) + && vim_isalpha(PTR2CHAR(path_end))))) e = p; if (has_mbyte) { |