From: Kevin McCarthy Date: Wed, 7 Aug 2019 21:17:28 +0000 (-0700) Subject: Automatically clear screen when popping the last menu X-Git-Tag: 2019-10-25~97^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=356efb70f911f4dca5d628f8f7c86f8a6bc04fd8;p=neomutt 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. Co-authored-by: Richard Russon --- diff --git a/autocrypt/autocrypt.c b/autocrypt/autocrypt.c index 79e6cf8a8..c4f4675f5 100644 --- a/autocrypt/autocrypt.c +++ b/autocrypt/autocrypt.c @@ -911,11 +911,6 @@ void mutt_autocrypt_scan_mailboxes(void) mutt_buffer_reset(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 8d037b8f0..717fd8071 100644 --- a/menu.c +++ b/menu.c @@ -1081,6 +1081,8 @@ void mutt_menu_pop_current(struct Menu *menu) else { CurrentMenu = MENU_MAIN; + move(0, 0); + clrtobot(); } }