patch 9.1.0855: setting 'cmdheight' may cause hit-enter-prompt
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: #13432
Signed-off-by: nwounkn <nwounkn@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
feea1b444e
commit
2e48567007
13
src/window.c
13
src/window.c
@ -7343,11 +7343,14 @@ command_height(void)
|
||||
// Recompute window positions.
|
||||
(void)win_comp_pos();
|
||||
|
||||
// clear the lines added to cmdline
|
||||
if (full_screen)
|
||||
screen_fill(cmdline_row, (int)Rows, 0,
|
||||
(int)Columns, ' ', ' ', 0);
|
||||
msg_row = cmdline_row;
|
||||
if (!need_wait_return)
|
||||
{
|
||||
// clear the lines added to cmdline
|
||||
if (full_screen)
|
||||
screen_fill(cmdline_row, (int)Rows, 0,
|
||||
(int)Columns, ' ', ' ', 0);
|
||||
msg_row = cmdline_row;
|
||||
}
|
||||
redraw_cmdline = TRUE;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user