From: Kevin McCarthy Date: Wed, 7 Aug 2019 21:17:28 +0000 (-0700) Subject: Automatically clear screen when popping the last menu. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01bc088c29993445c3a69824a74cb43bc87a93c1;p=mutt Automatically clear screen when popping the last menu. This removes the need to manually clear the screen during pre-menu operations, such as autocrypt first run initialization. --- diff --git a/autocrypt/autocrypt.c b/autocrypt/autocrypt.c index 4ef47a8d..49ca9d56 100644 --- a/autocrypt/autocrypt.c +++ b/autocrypt/autocrypt.c @@ -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 df798c98..18332a15 100644 --- 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 (); } }