diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:00:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-01 16:00:53 +0100 |
commit | 7d7ad7b2e8c6403033fbdb083f092321c0ccbfaf (patch) | |
tree | 4dc8f66a97862870b7d09ac390e75f0912b046e1 /src/channel.c | |
parent | be807d582499acbe314ead3891481cba6ca136df (diff) |
patch 9.0.0350: :echowindow does not work in a compiled functionv9.0.0350
Problem: :echowindow does not work in a compiled function.
Solution: Handle the expression at compile time.
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 6 |
1 files changed, 1 insertions, 5 deletions
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); |