fix: cmdline flicker when cmdheight = 0

This commit is contained in:
Shougo Matsushita 2022-10-14 16:48:15 +09:00
parent d339b4aad7
commit eda2dcfeae

View File

@ -434,10 +434,12 @@ int update_screen(void)
// UPD_CLEAR is already handled
if (type == UPD_NOT_VALID && !ui_has(kUIMultigrid) && msg_scrolled) {
was_invalidated = ui_comp_set_screen_valid(false);
if (p_ch > 0) {
for (int i = valid; i < Rows - p_ch; i++) {
grid_clear_line(&default_grid, default_grid.line_offset[i],
Columns, false);
}
}
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_floating) {
continue;