(edit_show_search_error): use message().

(edit_query_dialog): isn't used anymore. Remove.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-11-17 15:38:00 +03:00
parent 37a0540423
commit 7b2b78722d
2 changed files with 2 additions and 3 deletions

View File

@ -74,7 +74,6 @@
#define get_sys_error(s) (s) #define get_sys_error(s) (s)
#define edit_error_dialog(h,s) query_dialog (h, s, D_ERROR, 1, _("&Dismiss")) #define edit_error_dialog(h,s) query_dialog (h, s, D_ERROR, 1, _("&Dismiss"))
#define edit_query_dialog(h,s) query_dialog (h, s, D_NORMAL, 1, _("&Dismiss"))
#define edit_query_dialog2(h,t,a,b) query_dialog (h, t, D_NORMAL, 2, a, b) #define edit_query_dialog2(h,t,a,b) query_dialog (h, t, D_NORMAL, 2, a, b)
#define edit_query_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c) #define edit_query_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c)

View File

@ -551,9 +551,9 @@ static void
edit_show_search_error (const WEdit *edit, const char *title) edit_show_search_error (const WEdit *edit, const char *title)
{ {
if (edit->search->error == MC_SEARCH_E_NOTFOUND) if (edit->search->error == MC_SEARCH_E_NOTFOUND)
edit_query_dialog (title, _(STR_E_NOTFOUND)); message (D_NORMAL, title, "%s", _(STR_E_NOTFOUND));
else if (edit->search->error_str != NULL) else if (edit->search->error_str != NULL)
edit_query_dialog (title, edit->search->error_str); message (D_NORMAL, title, "%s", edit->search->error_str);
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */