fix(winbar): set w_winrow_off when initializing firstwin size (#18793)

This commit is contained in:
zeertzjq
2022-05-29 16:26:55 +08:00
committed by GitHub
parent 6d30efddb7
commit 015656abd7
2 changed files with 20 additions and 0 deletions

View File

@@ -3993,6 +3993,7 @@ void win_init_size(void)
firstwin->w_height = ROWS_AVAIL;
firstwin->w_height_inner = firstwin->w_height - firstwin->w_winbar_height;
firstwin->w_height_outer = firstwin->w_height;
firstwin->w_winrow_off = firstwin->w_winbar_height;
topframe->fr_height = ROWS_AVAIL;
firstwin->w_width = Columns;
firstwin->w_width_inner = firstwin->w_width;