patch 8.2.4008: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/ops.c b/src/ops.c
index 0685a06..44a6a6e 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3381,7 +3381,7 @@
typval_T rettv;
if (*p_opfunc == NUL)
- emsg(_("E774: 'operatorfunc' is empty"));
+ emsg(_(e_operatorfunc_is_empty));
else
{
// Set '[ and '] marks to text to be operated on.
@@ -3419,7 +3419,7 @@
}
}
#else
- emsg(_("E775: Eval feature not available"));
+ emsg(_(e_eval_feature_not_available));
#endif
}