0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.2.4005: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-04 21:30:47 +00:00
parent 548911ee14
commit a6f7929e62
25 changed files with 196 additions and 78 deletions

View File

@@ -1406,9 +1406,9 @@ ex_endwhile(exarg_T *eap)
// If we are in a ":while" or ":for" but used the wrong endloop
// command, do not rewind to the next enclosing ":for"/":while".
if (fl & CSF_WHILE)
eap->errmsg = _("E732: Using :endfor with :while");
eap->errmsg = _(e_using_endfor_with_while);
else if (fl & CSF_FOR)
eap->errmsg = _("E733: Using :endwhile with :for");
eap->errmsg = _(e_using_endwhile_with_for);
}
if (!(fl & (CSF_WHILE | CSF_FOR)))
{