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/quickfix.c b/src/quickfix.c
index 9021029..3643f27 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -219,11 +219,6 @@
static char_u *qf_last_bufname = NULL;
static bufref_T qf_last_bufref = {NULL, 0, 0};
-static char *e_current_quickfix_list_was_changed =
- N_("E925: Current quickfix list was changed");
-static char *e_current_location_list_was_changed =
- N_("E926: Current location list was changed");
-
/*
* Maximum number of bytes allowed per line while reading a errorfile.
*/
@@ -3160,7 +3155,7 @@
win_T *wp = win_id2wp(prev_winid);
if (wp == NULL && curwin->w_llist != qi)
{
- emsg(_("E924: Current window was closed"));
+ emsg(_(e_current_window_was_closed));
*opened_window = FALSE;
return NOTDONE;
}
@@ -8386,7 +8381,6 @@
typval_T *rettv)
{
# ifdef FEAT_QUICKFIX
- static char *e_invact = N_("E927: Invalid action: '%s'");
char_u *act;
int action = 0;
static int recursive = 0;
@@ -8414,7 +8408,7 @@
act[1] == NUL)
action = *act;
else
- semsg(_(e_invact), act);
+ semsg(_(e_invalid_action_str_1), act);
}
else if (action_arg->v_type == VAR_UNKNOWN)
action = ' ';