]> granicus.if.org Git - mutt/commitdiff
Call endwin() before calling PGP for traditional encryption.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 11 Dec 2002 22:23:42 +0000 (22:23 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 11 Dec 2002 22:23:42 +0000 (22:23 +0000)
crypt.c

diff --git a/crypt.c b/crypt.c
index 30e06ccf0365315fd24ef34c1b80ae2c1c5173be..d25193ce590104348478d3cfaa19a663458394bd 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -189,10 +189,10 @@ int mutt_protect (HEADER *msg, char *keylist)
     }
     if (traditional)
     {
-      mutt_message _("Invoking PGP...");
+      if (!isendwin ()) mutt_endwin _("Invoking PGP...");
       if (!(pbody = pgp_traditional_encryptsign (msg->content, flags, keylist)))
        return -1;
-    
+
       msg->content = pbody;
       return 0;
     }