1
0
forked from aniani/vim

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

@@ -4529,6 +4529,31 @@ popup_hide_message_win(void)
popup_hide(message_win);
}
/*
* Invoked before outputting a message for ":echowindow".
*/
void
start_echowindow(void)
{
in_echowindow = TRUE;
}
/*
* Invoked after outputting a message for ":echowindow".
*/
void
end_echowindow(void)
{
// show the message window now
redraw_cmd(FALSE);
// do not overwrite messages
// TODO: only for message window
msg_didout = TRUE;
if (msg_col == 0)
msg_col = 1;
in_echowindow = FALSE;
}
#endif
/*