From 6af5107b7996121d35a1398d2895a6fd216288fc Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 10 Dec 2001 13:12:41 +0000 Subject: [PATCH] Fix #910. --- query.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/query.c b/query.c index 05be9841..66b175a3 100644 --- a/query.c +++ b/query.c @@ -295,9 +295,6 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) if (results) { - /* tell whoever called me to redraw the screen when I return */ - set_option (OPTNEEDREDRAW); - snprintf (title, sizeof (title), _("Query '%s'"), buf); /* count the number of results */ @@ -480,6 +477,7 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) { rfc822_write_address (buf, buflen, result_to_addr(QueryTable[menu->current].data)); } + } queryp = results; @@ -493,6 +491,9 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) queryp = results; } safe_free ((void **) &QueryTable); + + /* tell whoever called me to redraw the screen when I return */ + set_option (OPTNEEDREDRAW); } mutt_menuDestroy (&menu); -- 2.40.0