0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

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.
This commit is contained in:
Bram Moolenaar
2022-09-01 16:00:53 +01:00
parent be807d5824
commit 7d7ad7b2e8
12 changed files with 84 additions and 11 deletions

View File

@@ -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);