diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-11-15 08:18:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 00:18:53 +0000 |
commit | 54c85bcb6d55ae7fa749e9998b67ebbcda58f4b9 (patch) | |
tree | 47f1aeec4ea3f6f2bf8bcb2bd87369dd4ea12474 /src | |
parent | fa0dcde3d9f17f85baa9dd41aa751c123281ced3 (diff) | |
download | rneovim-54c85bcb6d55ae7fa749e9998b67ebbcda58f4b9.tar.gz rneovim-54c85bcb6d55ae7fa749e9998b67ebbcda58f4b9.tar.bz2 rneovim-54c85bcb6d55ae7fa749e9998b67ebbcda58f4b9.zip |
vim-patch:9.1.0855: setting 'cmdheight' may missing output (#31216)
Problem: setting 'cmdheight' may cause hit-enter-prompt and echo output
to be missing
Solution: Before cleaning the cmdline, check the need_wait_return flag
(nwounkn)
closes: vim/vim#13432
https://github.com/vim/vim/commit/2e48567007f2becd484a3c3dd0706bf3a0beeae7
Co-authored-by: nwounkn <nwounkn@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/window.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 5147bbd23b..5f17d3220d 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -6814,11 +6814,13 @@ void command_height(void) // Recompute window positions. win_comp_pos(); - // clear the lines added to cmdline - if (full_screen) { - grid_clear(&default_grid, cmdline_row, Rows, 0, Columns, 0); + if (!need_wait_return) { + // clear the lines added to cmdline + if (full_screen) { + grid_clear(&default_grid, cmdline_row, Rows, 0, Columns, 0); + } + msg_row = cmdline_row; } - msg_row = cmdline_row; redraw_cmdline = true; return; } |