1
0
forked from aniani/vim

patch 8.2.3961: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 22:49:24 +00:00
parent f1474d801b
commit 436b5adc97
62 changed files with 427 additions and 403 deletions

View File

@@ -4378,7 +4378,7 @@ did_set_spell_option(int is_spellfile)
l = (int)STRLEN(curwin->w_s->b_p_spf);
if (l > 0 && (l < 4
|| STRCMP(curwin->w_s->b_p_spf + l - 4, ".add") != 0))
errmsg = e_invarg;
errmsg = e_invalid_argument;
}
if (errmsg == NULL)
@@ -4416,7 +4416,7 @@ compile_cap_prog(synblock_T *synblock)
if (synblock->b_cap_prog == NULL)
{
synblock->b_cap_prog = rp; // restore the previous program
return e_invarg;
return e_invalid_argument;
}
}
}