diff src/message.c @ 1445:54a6b47d473e v7.1.160

updated for version 7.1-160
author vimboss
date Sat, 24 Nov 2007 14:44:58 +0000
parents c17ba3fb433e
children b9740fb41986
line wrap: on
line diff
--- a/src/message.c
+++ b/src/message.c
@@ -2850,6 +2850,15 @@ repeat_message()
     }
     else if (State == HITRETURN || State == SETWSIZE)
     {
+	if (msg_row == Rows - 1)
+	{
+	    /* Avoid drawing the "hit-enter" prompt below the previous one,
+	     * overwrite it.  Esp. useful when regaining focus and a
+	     * FocusGained autocmd exists but didn't draw anything. */
+	    msg_didout = FALSE;
+	    msg_col = 0;
+	    msg_clr_eos();
+	}
 	hit_return_msg();
 	msg_row = Rows - 1;
     }