mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
883b78d298
commit
5e9f9a8756
@ -2328,8 +2328,16 @@ static void spell_load_lang(char_u *lang)
|
||||
}
|
||||
|
||||
if (r == FAIL) {
|
||||
smsg(_("Warning: Cannot find word list \"%s.%s.spl\" or \"%s.ascii.spl\""),
|
||||
lang, spell_enc(), lang);
|
||||
if (starting) {
|
||||
// Some startup file sets &spell, but the necessary files don't exist:
|
||||
// try to prompt the user at VimEnter. Also set spell again. #3027
|
||||
do_cmdline_cmd(
|
||||
"autocmd VimEnter * call spellfile#LoadFile(&spelllang)|set spell");
|
||||
} else {
|
||||
smsg(
|
||||
_("Warning: Cannot find word list \"%s.%s.spl\" or \"%s.ascii.spl\""),
|
||||
lang, spell_enc(), lang);
|
||||
}
|
||||
} else if (sl.sl_slang != NULL) {
|
||||
// At least one file was loaded, now load ALL the additions.
|
||||
STRCPY(fname_enc + STRLEN(fname_enc) - 3, "add.spl");
|
||||
|
Loading…
Reference in New Issue
Block a user