From c01690b1eaa4ad55cea3ec48a0b5381180ebe970 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 13 Jul 2022 09:06:31 +0800 Subject: fix(exmode): flush messages before printing a line after pressing Enter (#19341) --- src/nvim/ex_docmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 0651c2e24c..9e8262fdfc 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -227,13 +227,14 @@ void do_exmode(void) emsg(_(e_emptybuf)); } else { if (ex_pressedreturn) { + // Make sure the message overwrites the right line and isn't throttled. + msg_scroll_flush(); // go up one line, to overwrite the ":" line, so the // output doesn't contain empty lines. msg_row = prev_msg_row; if (prev_msg_row == Rows - 1) { msg_row--; } - msg_grid.throttled = false; } msg_col = 0; print_line_no_prefix(curwin->w_cursor.lnum, FALSE, FALSE); -- cgit