patch 8.2.4012: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
diff --git a/src/option.c b/src/option.c
index 9cd3031..dd51593 100644
--- a/src/option.c
+++ b/src/option.c
@@ -1462,7 +1462,7 @@
}
if ((flags & P_MLE) && !p_mle)
{
- errmsg = N_("E992: Not allowed in a modeline when 'modelineexpr' is off");
+ errmsg = N_(e_not_allowed_in_modeline_when_modelineexpr_is_off);
goto skip;
}
#ifdef FEAT_DIFF
@@ -2822,7 +2822,7 @@
&& curbuf->b_term != NULL && !term_is_finished(curbuf))))
{
curbuf->b_p_ma = FALSE;
- return N_("E946: Cannot make a terminal with running job modifiable");
+ return N_(e_cannot_make_terminal_with_running_job_modifiable);
}
# endif
redraw_titles();
@@ -3223,7 +3223,7 @@
!has_vtp_working())
{
p_tgc = 0;
- return N_("E954: 24-bit colors are not supported on this environment");
+ return N_(e_24_bit_colors_are_not_supported_on_this_environment);
}
if (is_term_win32())
swap_tcap();