From: Todd Zullinger Date: Fri, 23 May 2008 05:40:09 +0000 (-0400) Subject: Call mutt_need_hard_redraw() in pgp_decrypt_part(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3854e20c597862d6621e8e1e90b1ebf753d28dae;p=mutt Call mutt_need_hard_redraw() in pgp_decrypt_part(). This change ensures that the screen is redrawn when using gpg-agent. Without this, mutt's navigation keybindings are lost after pinentry curses prompts for a passphrase to descrypt a message. --- diff --git a/pgp.c b/pgp.c index 66e92948..29522c51 100644 --- a/pgp.c +++ b/pgp.c @@ -848,7 +848,10 @@ BODY *pgp_decrypt_part (BODY *a, STATE *s, FILE *fpout, BODY *p) fflush (fpout); rewind (fpout); - + + if (pgp_use_gpg_agent()) + mutt_need_hard_redraw (); + if (fgetc (fpout) == EOF) { mutt_error _("Decryption failed");