comparison src/spell.c @ 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 5b7b5b372e2d
children 89e1d67814a9
comparison
equal deleted inserted replaced
29594:6eea3c60c85c 29595:5233acfa06f1
4361 valid_spellfile(char_u *val) 4361 valid_spellfile(char_u *val)
4362 { 4362 {
4363 char_u *s; 4363 char_u *s;
4364 4364
4365 for (s = val; *s != NUL; ++s) 4365 for (s = val; *s != NUL; ++s)
4366 if (!vim_isfilec(*s) && *s != ',' && *s != ' ') 4366 if (!vim_is_fname_char(*s))
4367 return FALSE; 4367 return FALSE;
4368 return TRUE; 4368 return TRUE;
4369 } 4369 }
4370 4370
4371 /* 4371 /*