fix(cmdheight=0): various issues part3 #19816

And fixed in https://github.com/neovim/neovim/pull/19801 regression.

Fix #19834
Fix #19184
This commit is contained in:
Shougo 2022-09-06 23:33:25 +09:00 committed by GitHub
parent 12afc344de
commit 87e037e26c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -1698,6 +1698,7 @@ static void getchar_common(typval_T *argvars, typval_T *rettv)
if (!ui_has_messages()) { if (!ui_has_messages()) {
// redraw the screen after getchar() // redraw the screen after getchar()
update_screen(UPD_NOT_VALID); update_screen(UPD_NOT_VALID);
clear_cmdline = true;
} }
set_vim_var_nr(VV_MOUSE_WIN, 0); set_vim_var_nr(VV_MOUSE_WIN, 0);

View File

@ -2350,7 +2350,7 @@ bool msg_use_msgsep(void)
{ {
// the full-screen scroll behavior doesn't really make sense with // the full-screen scroll behavior doesn't really make sense with
// 'ext_multigrid' // 'ext_multigrid'
return ((dy_flags & DY_MSGSEP) || ui_has(kUIMultigrid)); return (dy_flags & DY_MSGSEP) || ui_has(kUIMultigrid);
} }
bool msg_do_throttle(void) bool msg_do_throttle(void)

View File

@ -6270,12 +6270,6 @@ void command_height(void)
// p_ch was changed in another tab page. // p_ch was changed in another tab page.
curtab->tp_ch_used = p_ch; curtab->tp_ch_used = p_ch;
// If the space for the command line is already more than 'cmdheight' there
// is nothing to do (window size must have decreased).
if (p_ch > old_p_ch && cmdline_row <= Rows - p_ch) {
return;
}
// If cmdline_row is smaller than what it is supposed to be for 'cmdheight' // If cmdline_row is smaller than what it is supposed to be for 'cmdheight'
// then set old_p_ch to what it would be, so that the windows get resized // then set old_p_ch to what it would be, so that the windows get resized
// properly for the new value. // properly for the new value.