Skip to content

Commit 57002ad

Browse files
committed
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.
1 parent 036986f commit 57002ad

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/eval.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8319,6 +8319,15 @@ ex_execute(exarg_T *eap)
83198319

83208320
if (ret != FAIL && ga.ga_data != NULL)
83218321
{
8322+
if (eap->cmdidx == CMD_echomsg || eap->cmdidx == CMD_echoerr)
8323+
{
8324+
/* Mark the already saved text as finishing the line, so that what
8325+
* follows is displayed on a new line when scrolling back at the
8326+
* more prompt. */
8327+
msg_sb_eol();
8328+
msg_start();
8329+
}
8330+
83228331
if (eap->cmdidx == CMD_echomsg)
83238332
{
83248333
MSG_ATTR(ga.ga_data, echo_attr);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
467,
767769
/**/
768770
466,
769771
/**/

0 commit comments

Comments
 (0)