vim-patch:9.1.0783: 'spell' option setting has problems (#30818)

Problem:  'spell' option setting has problems
Solution: correctly check for comma for 'spellfile' option,
          remove unnecessary checks, refactor slightly (Milly)

closes: vim/vim#15873

322ad0c953

Co-authored-by: Milly <milly.ca@gmail.com>
This commit is contained in:
zeertzjq
2024-10-15 09:40:54 +08:00
committed by GitHub
parent 09e7f19511
commit f25ebc2290
4 changed files with 16 additions and 20 deletions

View File

@@ -2118,7 +2118,7 @@ const char *did_set_spellfile(optset_T *args)
if ((!valid_spellfile(*varp))) {
return e_invarg;
}
return did_set_spell_option(true);
return did_set_spell_option();
}
/// The 'spelllang' option is changed.
@@ -2131,7 +2131,7 @@ const char *did_set_spelllang(optset_T *args)
if (!valid_spelllang(*varp)) {
return e_invarg;
}
return did_set_spell_option(false);
return did_set_spell_option();
}
/// The 'spelloptions' option is changed.