]> granicus.if.org Git - vim/commitdiff
After entering a crypt key would need to hit return to continue.
authorBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2010 18:12:32 +0000 (20:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2010 18:12:32 +0000 (20:12 +0200)
When silencing a message it would still clear a kept message.

src/message.c
src/misc2.c

index 3b1b458922cb49cb83fd2f1d9101b8ddda767ad4..c33b173b89bba6088362ed31d5ece4b80dbcf11d 100644 (file)
@@ -1135,8 +1135,11 @@ msg_start()
 {
     int                did_return = FALSE;
 
-    vim_free(keep_msg);
-    keep_msg = NULL;                   /* don't display old message now */
+    if (!msg_silent)
+    {
+       vim_free(keep_msg);
+       keep_msg = NULL;                /* don't display old message now */
+    }
 
 #ifdef FEAT_EVAL
     if (need_clr_eos)
index 3c25a1f08792de14f358559722c8f13ceda21858..8492b3e81548206db6256024a077cb833f4e4c92 100644 (file)
@@ -4016,9 +4016,9 @@ get_crypt_key(store, twice)
     }
 
     /* since the user typed this, no need to wait for return */
-    need_wait_return = FALSE;
     if (msg_didout)
        msg_putchar('\n');
+    need_wait_return = FALSE;
     msg_didout = FALSE;
 
     free_crypt_key(p2);