mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user