aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-04 13:43:23 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-04 13:48:52 +0800
commit7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83 (patch)
tree293255262ee3b8bb4ad4c5b6079c95930019029d /test
parenta1bd31e6010c803fd842db6bdb0d531a71e67837 (diff)
downloadrneovim-7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83.tar.gz
rneovim-7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83.tar.bz2
rneovim-7e70a1e44b223a51f4d8f06b9fe4c4ef77601f83.zip
vim-patch:9.0.0138: not enough characters accepted for 'spellfile'
Problem: Not enough characters accepted for 'spellfile'. Solution: Add vim_is_fname_char() and use it for 'spellfile'. https://github.com/vim/vim/commit/bc49c5f48f89c2d6f4d88ee77f44a11d68293be3 Cherry-pick related doc update from Vim runtime. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_spellfile.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/old/testdir/test_spellfile.vim b/test/old/testdir/test_spellfile.vim
index dbffbafed9..639ebc1c34 100644
--- a/test/old/testdir/test_spellfile.vim
+++ b/test/old/testdir/test_spellfile.vim
@@ -1063,4 +1063,12 @@ func Test_mkspellmem_opt()
call assert_fails('set mkspellmem=1000,50,0', 'E474:')
endfunc
+" 'spellfile' accepts '@' on top of 'isfname'.
+func Test_spellfile_allow_at_character()
+ call mkdir('Xtest/the foo@bar,dir', 'p')
+ let &spellfile = './Xtest/the foo@bar,dir/Xspellfile.add'
+ let &spellfile = ''
+ call delete('Xtest', 'rf')
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab