changeset 19463:798fce18d049 v8.2.0289

patch 8.2.0289: Vim9: :echo did not clear the rest of the line Commit: https://github.com/vim/vim/commit/e0807ea4a715334bd9a4795d98cad6e7925b5281 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 20 22:18:06 2020 +0100 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 https://github.com/vim/vim/issues/5668)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Feb 2020 22:30:04 +0100
parents 7db8ac16dc8f
children f26f4ce18b1a
files src/version.c src/vim9execute.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    289,
+/**/
     288,
 /**/
     287,
--- 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;