diff src/eval.c @ 3423:62dc0d69ab11 v7.3.477

updated for version 7.3.477 Problem: Using ":echo" to output enough lines to scroll, then using "j" and "k" at the more prompt, displays the command on top of the output. (Marcin Szamotulski) Solution: Put the output below the command. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Fri, 23 Mar 2012 15:18:24 +0100
parents d1096a4e96bd
children 754db4059212
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -20492,7 +20492,12 @@ ex_echo(eap)
 		/* Call msg_start() after eval1(), evaluating the expression
 		 * may cause a message to appear. */
 		if (eap->cmdidx == CMD_echo)
+		{
+		    /* Put the output below the command, makes scrolling back
+		     * at more prompt work. */
+		    msg_didout = TRUE;
 		    msg_start();
+		}
 	    }
 	    else if (eap->cmdidx == CMD_echo)
 		msg_puts_attr((char_u *)" ", echo_attr);