changeset 26986:79ea140936e9 v8.2.4022

patch 8.2.4022: two error messages in the wrong file Commit: https://github.com/vim/vim/commit/11de43d2d476c449587f1f0712924890ab677708 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 6 21:41:11 2022 +0000 patch 8.2.4022: two error messages in the wrong file Problem: Two error messages in the wrong file. Solution: Use the error message from errors.h.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Jan 2022 22:45:05 +0100
parents a770f305b835
children 30b34e3440c9
files src/popupwin.c src/usercmd.c src/version.c
diffstat 3 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -1917,7 +1917,7 @@ popup_create(typval_T *argvars, typval_T
 	    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
--- a/src/usercmd.c
+++ b/src/usercmd.c
@@ -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;
     }
 
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4022,
+/**/
     4021,
 /**/
     4020,