diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-13 09:06:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 09:06:31 +0800 |
commit | c01690b1eaa4ad55cea3ec48a0b5381180ebe970 (patch) | |
tree | 2ddb5c2c74aa6edcb716fa8635b8250f266c5d3e /src | |
parent | 39d51c833aed7e2ab946cd51bfff8d981269a8ef (diff) | |
download | rneovim-c01690b1eaa4ad55cea3ec48a0b5381180ebe970.tar.gz rneovim-c01690b1eaa4ad55cea3ec48a0b5381180ebe970.tar.bz2 rneovim-c01690b1eaa4ad55cea3ec48a0b5381180ebe970.zip |
fix(exmode): flush messages before printing a line after pressing Enter (#19341)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 ":<CR>" 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); |