@@ -3348,6 +3348,10 @@ struct window_S
33483348 // top of the window
33493349 char w_topline_was_set ; // flag set to TRUE when topline is set,
33503350 // e.g. by winrestview()
3351+
3352+ linenr_T w_botline ; // number of the line below the bottom of
3353+ // the window
3354+
33513355#ifdef FEAT_DIFF
33523356 int w_topfill ; // number of filler lines above w_topline
33533357 int w_old_topfill ; // w_topfill at last redraw
@@ -3361,18 +3365,27 @@ struct window_S
33613365 colnr_T w_skipcol ; // starting column when a single line
33623366 // doesn't fit in the window
33633367
3368+ int w_empty_rows ; // number of ~ rows in window
3369+ #ifdef FEAT_DIFF
3370+ int w_filler_rows ; // number of filler rows at the end of the
3371+ // window
3372+ #endif
3373+
33643374 /*
33653375 * Layout of the window in the screen.
33663376 * May need to add "msg_scrolled" to "w_winrow" in rare situations.
33673377 */
33683378 int w_winrow ; // first row of window in screen
33693379 int w_height ; // number of rows in window, excluding
33703380 // status/command/winbar line(s)
3381+
33713382 int w_status_height ; // number of status lines (0 or 1)
33723383 int w_wincol ; // Leftmost column of window in screen.
33733384 int w_width ; // Width of window, excluding separation.
33743385 int w_vsep_width ; // Number of separator columns (0 or 1).
3386+
33753387 pos_save_T w_save_cursor ; // backup of cursor pos and topline
3388+
33763389#ifdef FEAT_PROP_POPUP
33773390 int w_popup_flags ; // POPF_ values
33783391 int w_popup_handled ; // POPUP_HANDLE[0-9] flags
@@ -3433,8 +3446,14 @@ struct window_S
34333446# if defined(FEAT_TIMERS )
34343447 timer_T * w_popup_timer ; // timer for closing popup window
34353448# endif
3436- #endif
34373449
3450+ int w_flags ; // WFLAG_ flags
3451+
3452+ # define WFLAG_WCOL_OFF_ADDED 1 // popup border and padding were added to
3453+ // w_wcol
3454+ # define WFLAG_WROW_OFF_ADDED 2 // popup border and padding were added to
3455+ // w_wrow
3456+ #endif
34383457
34393458 /*
34403459 * === start of cached values ====
@@ -3475,14 +3494,6 @@ struct window_S
34753494 */
34763495 int w_wrow , w_wcol ; // cursor position in window
34773496
3478- linenr_T w_botline ; // number of the line below the bottom of
3479- // the window
3480- int w_empty_rows ; // number of ~ rows in window
3481- #ifdef FEAT_DIFF
3482- int w_filler_rows ; // number of filler rows at the end of the
3483- // window
3484- #endif
3485-
34863497 /*
34873498 * Info about the lines currently in the window is remembered to avoid
34883499 * recomputing it every time. The allocated size of w_lines[] is Rows.
0 commit comments