]> granicus.if.org Git - vim/commitdiff
patch 8.0.0467: using g< after :for does not show the right output v8.0.0467
authorBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 18:04:19 +0000 (19:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Mar 2017 18:04:19 +0000 (19:04 +0100)
Problem:    Using g< after :for does not show the right output. (Marcin
            Szamotulski)
Solution:   Call msg_sb_eol() in :echomsg.

src/eval.c
src/version.c

index e5e787b5e068cafe2680dcb265f8011aded04b91..56bb21f9be2e93b4e7bb71ff210ac0fc5cb1905e 100644 (file)
@@ -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);
index 473766308741b065b76798dda4ffddad78723e4e..9aad9b613330af5654928b05332fc8619507f0c1 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    467,
 /**/
     466,
 /**/