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.
diff --git a/src/popupwin.c b/src/popupwin.c
index 0702222..ec7623d 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -1917,7 +1917,7 @@
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 @@
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 @@
static void
error_for_popup_window(void)
{
- emsg(_("E994: Not allowed in a popup window"));
+ emsg(_(e_not_allowed_in_popup_window));
}
int