refactor: move more grid functions to grid.c. Clean up some variables

This commit is contained in:
bfredl
2022-05-18 13:29:02 +02:00
parent 028329850e
commit c28192e6f9
7 changed files with 105 additions and 104 deletions

View File

@@ -6263,7 +6263,6 @@ void win_set_inner_size(win_T *wp)
}
wp->w_skipcol = 0;
wp->w_height_inner = height;
wp->w_winrow_off = wp->w_border_adj[0] + wp->w_winbar_height;
// There is no point in adjusting the scroll position when exiting. Some
// values might be invalid.
@@ -6291,6 +6290,8 @@ void win_set_inner_size(win_T *wp)
wp->w_height_outer = (wp->w_height_inner + win_extra_height(wp));
wp->w_width_outer = (wp->w_width_inner + win_extra_width(wp));
wp->w_winrow_off = wp->w_border_adj[0] + wp->w_winbar_height;
wp->w_wincol_off = wp->w_border_adj[3];
}
static int win_extra_height(win_T *wp)