diff src/channel.c @ 30025:d269dd3cd31d v9.0.0350

patch 9.0.0350: :echowindow does not work in a compiled function Commit: https://github.com/vim/vim/commit/7d7ad7b2e8c6403033fbdb083f092321c0ccbfaf Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 1 16:00:53 2022 +0100 patch 9.0.0350: :echowindow does not work in a compiled function Problem: :echowindow does not work in a compiled function. Solution: Handle the expression at compile time.
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Sep 2022 17:15:04 +0200
parents 86eb4aba16c3
children 87e205ae86d3
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -2731,12 +2731,8 @@ channel_exe_cmd(channel_T *channel, ch_p
     }
     else if (STRCMP(cmd, "redraw") == 0)
     {
-	exarg_T ea;
-
 	ch_log(channel, "redraw");
-	CLEAR_FIELD(ea);
-	ea.forceit = *arg != NUL;
-	ex_redraw(&ea);
+	redraw_cmd(*arg != NUL);
 	showruler(FALSE);
 	setcursor();
 	out_flush_cursor(TRUE, FALSE);