comparison 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
comparison
equal deleted inserted replaced
3422:79883aebc129 3423:62dc0d69ab11
20490 { 20490 {
20491 atstart = FALSE; 20491 atstart = FALSE;
20492 /* Call msg_start() after eval1(), evaluating the expression 20492 /* Call msg_start() after eval1(), evaluating the expression
20493 * may cause a message to appear. */ 20493 * may cause a message to appear. */
20494 if (eap->cmdidx == CMD_echo) 20494 if (eap->cmdidx == CMD_echo)
20495 {
20496 /* Put the output below the command, makes scrolling back
20497 * at more prompt work. */
20498 msg_didout = TRUE;
20495 msg_start(); 20499 msg_start();
20500 }
20496 } 20501 }
20497 else if (eap->cmdidx == CMD_echo) 20502 else if (eap->cmdidx == CMD_echo)
20498 msg_puts_attr((char_u *)" ", echo_attr); 20503 msg_puts_attr((char_u *)" ", echo_attr);
20499 current_copyID += COPYID_INC; 20504 current_copyID += COPYID_INC;
20500 p = echo_string(&rettv, &tofree, numbuf, current_copyID); 20505 p = echo_string(&rettv, &tofree, numbuf, current_copyID);