diff src/testdir/test_spellfile.vim @ 29595:5233acfa06f1 v9.0.0138

patch 9.0.0138: not enough characters accepted for 'spellfile' Commit: https://github.com/vim/vim/commit/bc49c5f48f89c2d6f4d88ee77f44a11d68293be3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 4 13:01:48 2022 +0100 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'.
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Aug 2022 14:15:29 +0200
parents 485c7c4afeb7
children be40495e9cd8
line wrap: on
line diff
--- a/src/testdir/test_spellfile.vim
+++ b/src/testdir/test_spellfile.vim
@@ -1160,4 +1160,12 @@ func Test_mkspellmem_opt()
   call assert_fails('set mkspellmem=1000,50,0', 'E474:')
 endfunc
 
+" 'spellfile' accepts '@' on top of 'isfname'.
+def Test_spellfile_allow_at_character()
+  mkdir('Xtest/the foo@bar,dir', 'p')
+  &spellfile = './Xtest/the foo@bar,dir/Xspellfile.add'
+  &spellfile = ''
+  delete('Xtest', 'rf')
+enddef
+
 " vim: shiftwidth=2 sts=2 expandtab