1
0
forked from aniani/vim

patch 9.0.0293: messages window not hidden when starting a command line

Problem:    Messages window not hidden when starting a command line.
Solution:   Hide the messages window. (closes #10996)
This commit is contained in:
Bram Moolenaar
2022-08-28 12:06:21 +01:00
parent d1f8fd5907
commit b0509c542e
3 changed files with 10 additions and 0 deletions

View File

@@ -1603,6 +1603,9 @@ getcmdline_int(
made_cmdheight_nonzero = TRUE; made_cmdheight_nonzero = TRUE;
lastwin->w_p_so = 0; lastwin->w_p_so = 0;
set_option_value((char_u *)"ch", 1L, NULL, 0); set_option_value((char_u *)"ch", 1L, NULL, 0);
#ifdef HAS_MESSAGE_WINDOW
popup_hide_message_win();
#endif
update_screen(UPD_VALID); // redraw the screen NOW update_screen(UPD_VALID); // redraw the screen NOW
made_cmdheight_nonzero = FALSE; made_cmdheight_nonzero = FALSE;
lastwin->w_p_so = save_so; lastwin->w_p_so = save_so;

View File

@@ -398,6 +398,11 @@ func Test_cmdheight_zero()
if using_popupwin if using_popupwin
redraw redraw
call assert_equal('test echo', Screenline(&lines)) call assert_equal('test echo', Screenline(&lines))
" check that the popup is cleared when entering a command line
call feedkeys(':', 'xt')
redraw
call assert_equal('~', Screenline(&lines))
else else
call assert_equal(116, screenchar(&lines, 1)) call assert_equal(116, screenchar(&lines, 1))
endif endif

View File

@@ -707,6 +707,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
293,
/**/ /**/
292, 292,
/**/ /**/