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/testdir/test_autochdir.vim | |
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/testdir/test_autochdir.vim')
-rw-r--r-- | src/testdir/test_autochdir.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_autochdir.vim b/src/testdir/test_autochdir.vim index 5d367757fc..95004d278a 100644 --- a/src/testdir/test_autochdir.vim +++ b/src/testdir/test_autochdir.vim @@ -110,4 +110,12 @@ func Test_verbose_pwd() call delete('Xautodir', 'rf') endfunc +func Test_multibyte() + " using an invalid character should not cause a crash + set wic + call assert_fails('tc *', 'E344:') + set nowic +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |