# HG changeset patch # User Christian Brabandt # Date 1489688104 -3600 # Node ID 404e98047f0b2204f7f5e9c00283e9271f40f080 # Parent d0a20101ecb247b1efd2f04845b3dbaa189cc95d patch 8.0.0467: using g< after :for does not show the right output commit https://github.com/vim/vim/commit/57002ad70c4c32f3afefec24994a974cf3eef3ad Author: Bram Moolenaar Date: Thu Mar 16 19:04:19 2017 +0100 patch 8.0.0467: using g< after :for does not show the right output Problem: Using g< after :for does not show the right output. (Marcin Szamotulski) Solution: Call msg_sb_eol() in :echomsg. diff --git a/src/eval.c b/src/eval.c --- 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 467, +/**/ 466, /**/ 465,