patch 8.2.4005: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/ex_eval.c b/src/ex_eval.c
index d9d6b2d..a48f609 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -1406,9 +1406,9 @@
// 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)))
{