Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
29594:6eea3c60c85c | 29595:5233acfa06f1 |
---|---|
1158 call assert_fails('set mkspellmem=1000,50,', 'E474:') | 1158 call assert_fails('set mkspellmem=1000,50,', 'E474:') |
1159 call assert_fails('set mkspellmem=1000,50,10,', 'E474:') | 1159 call assert_fails('set mkspellmem=1000,50,10,', 'E474:') |
1160 call assert_fails('set mkspellmem=1000,50,0', 'E474:') | 1160 call assert_fails('set mkspellmem=1000,50,0', 'E474:') |
1161 endfunc | 1161 endfunc |
1162 | 1162 |
1163 " 'spellfile' accepts '@' on top of 'isfname'. | |
1164 def Test_spellfile_allow_at_character() | |
1165 mkdir('Xtest/the foo@bar,dir', 'p') | |
1166 &spellfile = './Xtest/the foo@bar,dir/Xspellfile.add' | |
1167 &spellfile = '' | |
1168 delete('Xtest', 'rf') | |
1169 enddef | |
1170 | |
1163 " vim: shiftwidth=2 sts=2 expandtab | 1171 " vim: shiftwidth=2 sts=2 expandtab |