diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
commit | 436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch) | |
tree | 623dc85ee9a396b16f939f44d38138f882edc229 /src/spell.c | |
parent | f1474d801bbdb73406dd3d1f931f515f99e86dfa (diff) | |
download | vim-git-436b5adc9770a2568209dd5ab1f98bd1afc91898.tar.gz |
patch 8.2.3961: error messages are spread outv8.2.3961
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
Diffstat (limited to 'src/spell.c')
-rw-r--r-- | src/spell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spell.c b/src/spell.c index 857a79344..17b3ff8d5 100644 --- a/src/spell.c +++ b/src/spell.c @@ -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; } } } |