vim-patch:8.2.1493: not enough test coverage for the spell file handling

Problem:    Not enough test coverage for the spell file handling.
Solution:   Add spell file tests. (Yegappan Lakshmanan, closes vim/vim#6728)
fc2a47ffc4
This commit is contained in:
zeertzjq
2022-07-04 09:07:01 +08:00
parent acb6512f2e
commit ed64c8f683
2 changed files with 287 additions and 99 deletions

View File

@@ -733,7 +733,7 @@ slang_T *spell_load_file(char_u *fname, char_u *lang, slang_T *old_lp, bool sile
if (lp->sl_syllable == NULL) {
goto endFAIL;
}
if (init_syl_tab(lp) == FAIL) {
if (init_syl_tab(lp) != OK) {
goto endFAIL;
}
break;