summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-05 20:24:39 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-05 20:24:39 +0000
commitd82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf (patch)
tree604109254c7057942fce5c1af26fdd1bc36c066f /src/quickfix.c
parentbb8cac56d9c398a2b546d9c81c15e8c3d8fd811e (diff)
downloadvim-git-d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf.tar.gz
patch 8.2.4012: error messages are spread outv8.2.4012
Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 90210294a..3643f2740 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -219,11 +219,6 @@ static qf_info_T *ll_get_or_alloc_list(win_T *);
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 @@ qf_jump_edit_buffer(
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 @@ set_qf_ll_list(
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 @@ set_qf_ll_list(
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 = ' ';