]> granicus.if.org Git - vim/commitdiff
patch 8.2.0289: Vim9: :echo did not clear the rest of the line v8.2.0289
authorBram Moolenaar <Bram@vim.org>
Thu, 20 Feb 2020 21:18:06 +0000 (22:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 20 Feb 2020 21:18:06 +0000 (22:18 +0100)
Problem:    Vim9: :echo did not clear the rest of the line.
Solution:   Call msg_clr_eos(). (Ken Takata, closes #5668)

src/version.c
src/vim9execute.c

index 39a0fda14f6185b9c0c7387ec95a3780cdf5b218..75e02ffb0721345f29b2dded2c0c6d2ccf65d4c6 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    289,
 /**/
     288,
 /**/
index 7be8cdb92659bddfc29cecabf32ca817ed51d9c6..3bbf94ff676415fb402c302af45085f7dcbd6550 100644 (file)
@@ -527,6 +527,8 @@ call_def_function(
                                                           &atstart, &needclr);
                        clear_tv(tv);
                    }
+                   if (needclr)
+                       msg_clr_eos();
                    ectx.ec_stack.ga_len -= count;
                }
                break;