From: Bram Moolenaar Date: Thu, 20 Feb 2020 21:18:06 +0000 (+0100) Subject: patch 8.2.0289: Vim9: :echo did not clear the rest of the line X-Git-Tag: v8.2.0289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0807ea4a715334bd9a4795d98cad6e7925b5281;p=vim patch 8.2.0289: Vim9: :echo did not clear the rest of the line Problem: Vim9: :echo did not clear the rest of the line. Solution: Call msg_clr_eos(). (Ken Takata, closes #5668) --- diff --git a/src/version.c b/src/version.c index 39a0fda14..75e02ffb0 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 289, /**/ 288, /**/ diff --git a/src/vim9execute.c b/src/vim9execute.c index 7be8cdb92..3bbf94ff6 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -527,6 +527,8 @@ call_def_function( &atstart, &needclr); clear_tv(tv); } + if (needclr) + msg_clr_eos(); ectx.ec_stack.ga_len -= count; } break;