Merge pull request #17266 from famiu/feat/ui/global-statusline

feat(statusline): add global statusline
This commit is contained in:
bfredl
2022-03-17 20:16:39 +01:00
committed by GitHub
25 changed files with 828 additions and 203 deletions

View File

@@ -632,7 +632,7 @@ static void may_do_incsearch_highlighting(int firstc, long count, incsearch_stat
validate_cursor();
// May redraw the status line to show the cursor position.
if (p_ru && curwin->w_status_height > 0) {
if (p_ru && (curwin->w_status_height > 0 || global_stl_height() > 0)) {
curwin->w_redr_status = true;
}
@@ -3631,7 +3631,7 @@ void compute_cmdrow(void)
} else {
win_T *wp = lastwin_nofloating();
cmdline_row = wp->w_winrow + wp->w_height
+ wp->w_status_height;
+ wp->w_hsep_height + wp->w_status_height + global_stl_height();
}
lines_left = cmdline_row;
}