Merge pull request #18314 from tk-shirasaka/global-statusline-on-ext_messages

fix: display global statusline correctly with ext_messages
This commit is contained in:
bfredl
2022-05-05 18:33:52 +02:00
committed by GitHub
2 changed files with 108 additions and 5 deletions

View File

@@ -5490,7 +5490,7 @@ void win_setheight_win(int height, win_T *win)
}
}
cmdline_row = row;
p_ch = MAX(Rows - cmdline_row, 1);
p_ch = MAX(Rows - cmdline_row, ui_has(kUIMessages) ? 0 : 1);
curtab->tp_ch_used = p_ch;
msg_row = row;
msg_col = 0;
@@ -5998,10 +5998,7 @@ void win_drag_status_line(win_T *dragwin, int offset)
clear_cmdline = true;
}
cmdline_row = row;
p_ch = Rows - cmdline_row;
if (p_ch < 1) {
p_ch = 1;
}
p_ch = MAX(Rows - cmdline_row, ui_has(kUIMessages) ? 0 : 1);
curtab->tp_ch_used = p_ch;
redraw_all_later(SOME_VALID);
showmode();