summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-16 19:04:19 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-16 19:04:19 +0100
commit57002ad70c4c32f3afefec24994a974cf3eef3ad (patch)
tree9b617226c471fcf64ec83f416c39626b6a44697f /src/eval.c
parent036986f1507d223549d110af300144468bd3a1f7 (diff)
downloadvim-git-57002ad70c4c32f3afefec24994a974cf3eef3ad.tar.gz
patch 8.0.0467: using g< after :for does not show the right outputv8.0.0467
Problem: Using g< after :for does not show the right output. (Marcin Szamotulski) Solution: Call msg_sb_eol() in :echomsg.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index e5e787b5e..56bb21f9b 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -8319,6 +8319,15 @@ ex_execute(exarg_T *eap)
if (ret != FAIL && ga.ga_data != NULL)
{
+ if (eap->cmdidx == CMD_echomsg || eap->cmdidx == CMD_echoerr)
+ {
+ /* Mark the already saved text as finishing the line, so that what
+ * follows is displayed on a new line when scrolling back at the
+ * more prompt. */
+ msg_sb_eol();
+ msg_start();
+ }
+
if (eap->cmdidx == CMD_echomsg)
{
MSG_ATTR(ga.ga_data, echo_attr);