aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-04 14:44:13 +0800
committerGitHub <noreply@github.com>2023-05-04 14:44:13 +0800
commit24d4a825693db5f8454a389259a76f71f8697832 (patch)
treeef2a8f106faec12f3ba4d9e67a6be4db04fa3e43 /test
parenta1bd31e6010c803fd842db6bdb0d531a71e67837 (diff)
parent7ddf235d7e71ee8373b11baa6a49381311f5d61d (diff)
downloadrneovim-24d4a825693db5f8454a389259a76f71f8697832.tar.gz
rneovim-24d4a825693db5f8454a389259a76f71f8697832.tar.bz2
rneovim-24d4a825693db5f8454a389259a76f71f8697832.zip
Merge pull request #23466 from zeertzjq/vim-9.0.0138
vim-patch:9.0.{0138,0240}: two spell fixes
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_spellfile.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/old/testdir/test_spellfile.vim b/test/old/testdir/test_spellfile.vim
index dbffbafed9..4d2a6cf35f 100644
--- a/test/old/testdir/test_spellfile.vim
+++ b/test/old/testdir/test_spellfile.vim
@@ -1063,4 +1063,24 @@ 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
+
+" this was using a NULL pointer
+func Test_mkspell_empty_dic()
+ call writefile(['1'], 'XtestEmpty.dic')
+ call writefile(['SOFOFROM abcd', 'SOFOTO ABCD', 'SAL CIA X'], 'XtestEmpty.aff')
+ mkspell! XtestEmpty.spl XtestEmpty
+
+ call delete('XtestEmpty.dic')
+ call delete('XtestEmpty.aff')
+ call delete('XtestEmpty.spl')
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab