Problem: 'scroll' is not always updated.
Solution: Call win_init_size() at the right place.
* Set the default values for the options that use Rows and Columns.
*/
ui_get_shellsize(); // inits Rows and Columns
+ win_init_size();
#ifdef FEAT_DIFF
// Set the 'diff' option now, so that it can be checked for in a .vimrc
// file. There is no buffer yet though.
// don't have them.
if (!gui.in_use && params.evim_mode)
mch_exit(1);
+ firstwin->w_prev_height = firstwin->w_height; // may have changed
}
#endif
- win_init_size();
#ifdef FEAT_VIMINFO
/*
execute 'norm gg' . pos
split | redraw | wincmd k
call assert_equal(1, line("w0"))
+ call assert_equal(&scroll, winheight(0) / 2)
wincmd j
call assert_equal(win_screenpos(0)[0] - tabline - winbar_sb, line("w0"))
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 461,
/**/
460,
/**/
invalidate_botline_win(wp);
validate_botline_win(wp);
}
+ win_comp_scroll(wp);
wp->w_prev_height = wp->w_height;
wp->w_prev_winrow = wp->w_winrow;
}