]> granicus.if.org Git - mutt/commitdiff
Fix #910.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 10 Dec 2001 13:12:41 +0000 (13:12 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 10 Dec 2001 13:12:41 +0000 (13:12 +0000)
query.c

diff --git a/query.c b/query.c
index 05be9841bfb0e4a3940af98f54431ef06e8e704c..66b175a3f75e77c6c7766cf99eef22cdf16ac43e 100644 (file)
--- 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);