Mercurial > vim
diff src/quickfix.c @ 26966:ac75c145f0a9 v8.2.4012
patch 8.2.4012: error messages are spread out
Commit: https://github.com/vim/vim/commit/d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 5 20:24:39 2022 +0000
patch 8.2.4012: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Jan 2022 21:30:04 +0100 |
parents | d92e0d85923f |
children | bf540a32439a |
line wrap: on
line diff
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -219,11 +219,6 @@ static qf_info_T *ll_get_or_alloc_list(w 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 = ' ';