From 7b2b78722d284faa23061b921af7bbc7346b32dd Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 17 Nov 2024 15:38:00 +0300 Subject: [PATCH] (edit_show_search_error): use message(). (edit_query_dialog): isn't used anymore. Remove. Signed-off-by: Andrew Borodin --- src/editor/edit-impl.h | 1 - src/editor/editsearch.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/editor/edit-impl.h b/src/editor/edit-impl.h index d01e322bc..016010d73 100644 --- a/src/editor/edit-impl.h +++ b/src/editor/edit-impl.h @@ -74,7 +74,6 @@ #define get_sys_error(s) (s) #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_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c) diff --git a/src/editor/editsearch.c b/src/editor/editsearch.c index 0940c3f31..69222431b 100644 --- a/src/editor/editsearch.c +++ b/src/editor/editsearch.c @@ -551,9 +551,9 @@ static void edit_show_search_error (const WEdit *edit, const char *title) { 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) - edit_query_dialog (title, edit->search->error_str); + message (D_NORMAL, title, "%s", edit->search->error_str); } /* --------------------------------------------------------------------------------------------- */