mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
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
2e48567007
Co-authored-by: nwounkn <nwounkn@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user