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

@@ -1705,7 +1705,7 @@ static void didset_options(void)
spell_check_msm();
spell_check_sps();
compile_cap_prog(curwin->w_s);
did_set_spell_option(true);
did_set_spell_option();
// set cedit_key
did_set_cedit(NULL);
// initialize the table for 'breakat'.