]> granicus.if.org Git - vim/commitdiff
patch 8.2.4022: two error messages in the wrong file v8.2.4022
authorBram Moolenaar <Bram@vim.org>
Thu, 6 Jan 2022 21:41:11 +0000 (21:41 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 6 Jan 2022 21:41:11 +0000 (21:41 +0000)
Problem:    Two error messages in the wrong file.
Solution:   Use the error message from errors.h.

src/popupwin.c
src/usercmd.c
src/version.c

index 07022221eb5beb142b065c9a083d2f22d033237f..ec7623d0f7755f2e1b2f2cc40d3324ed52e67383 100644 (file)
@@ -1917,7 +1917,7 @@ popup_create(typval_T *argvars, typval_T *rettv, create_type_T type)
            tp = find_tabpage(tabnr);
            if (tp == NULL)
            {
-               semsg(_("E997: Tabpage not found: %d"), tabnr);
+               semsg(_(e_tabpage_not_found_nr), tabnr);
                return NULL;
            }
        }
@@ -2525,7 +2525,7 @@ find_popup_win(int id)
 
     if (wp != NULL && !WIN_IS_POPUP(wp))
     {
-       semsg(_("E993: window %d is not a popup window"), id);
+       semsg(_(e_window_nr_is_not_popup_window), id);
        return NULL;
     }
     return wp;
@@ -2671,7 +2671,7 @@ popup_free(win_T *wp)
     static void
 error_for_popup_window(void)
 {
-    emsg(_("E994: Not allowed in a popup window"));
+    emsg(_(e_not_allowed_in_popup_window));
 }
 
     int
index d4ed0a46a0af8b3f6edfa6d41ca9e337a7ab0047..135752d11701b686ad2e0605a959960f18289403 100644 (file)
@@ -618,7 +618,7 @@ parse_addr_type_arg(
        for (i = 0; err[i] != NUL && !VIM_ISWHITE(err[i]); i++)
            ;
        err[i] = NUL;
-       semsg(_("E180: Invalid address type value: %s"), err);
+       semsg(_(e_invalid_address_type_value_str), err);
        return FAIL;
     }
 
index 4a72d01b6da90d1ed159a07b30d375596696b1a0..68c194b51c9faeffb20b6e0e28a806ba02b64b9a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4022,
 /**/
     4021,
 /**/