From 7d7ad7b2e8c6403033fbdb083f092321c0ccbfaf Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 1 Sep 2022 16:00:53 +0100 Subject: 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. --- src/channel.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/channel.c') diff --git a/src/channel.c b/src/channel.c index 89776861d8..80fe4c4be8 100644 --- a/src/channel.c +++ b/src/channel.c @@ -2731,12 +2731,8 @@ channel_exe_cmd(channel_T *channel, ch_part_T part, typval_T *argv) } 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); -- cgit v1.2.3