Mercurial > vim
comparison src/eval.c @ 3435:19040069b8bf v7.3.483
updated for version 7.3.483
Problem: More prompt shows up too often.
Solution: Instead of adding a line break, only start a new line in the
message history. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 28 Mar 2012 16:49:29 +0200 |
parents | 754db4059212 |
children | b067b8b81be9 |
comparison
equal
deleted
inserted
replaced
3434:39a0757e0086 | 3435:19040069b8bf |
---|---|
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 { | 20495 { |
20496 /* Put the output below the command, makes scrolling back | 20496 /* Mark the saved text as finishing the line, so that what |
20497 * at more prompt work. */ | 20497 * follows is displayed on a new line when scrolling back |
20498 msg_didout = TRUE; | 20498 * at the more prompt. */ |
20499 msg_sb_eol(); | |
20499 msg_start(); | 20500 msg_start(); |
20500 } | 20501 } |
20501 } | 20502 } |
20502 else if (eap->cmdidx == CMD_echo) | 20503 else if (eap->cmdidx == CMD_echo) |
20503 msg_puts_attr((char_u *)" ", echo_attr); | 20504 msg_puts_attr((char_u *)" ", echo_attr); |