]> granicus.if.org Git - mutt/commitdiff
Automatically clear screen when popping the last menu.
authorKevin McCarthy <kevin@8t8.us>
Wed, 7 Aug 2019 21:17:28 +0000 (14:17 -0700)
committerKevin McCarthy <kevin@8t8.us>
Wed, 7 Aug 2019 21:17:28 +0000 (14:17 -0700)
This removes the need to manually clear the screen during pre-menu
operations, such as autocrypt first run initialization.

autocrypt/autocrypt.c
menu.c

index 4ef47a8db8645949f24be3de7cc4bdc757de6dd6..49ca9d5685e3f11d206fd9030c5539b9f9946b1e 100644 (file)
@@ -838,11 +838,6 @@ void mutt_autocrypt_scan_mailboxes (void)
       mutt_buffer_clear (folderbuf);
     }
 
-    /* outside of the MUTTMENU system, we have to deal with issues
-     * like the file browser not being cleared from the screen... */
-    move (0, 0);
-    clrtobot ();
-
     /* L10N:
        This is the second prompt to see if the user would like
        to scan more than one mailbox for Autocrypt headers.
diff --git a/menu.c b/menu.c
index df798c989e52d1eaf2c9e5b4b1d59e03e2ae49e3..18332a153be9066d5aafa64a2dd94df5860196a7 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -789,6 +789,8 @@ void mutt_pop_current_menu (MUTTMENU *menu)
   else
   {
     CurrentMenu = MENU_MAIN;
+    move (0, 0);
+    clrtobot ();
   }
 }