0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 9.0.0461: 'scroll' is not always updated

Problem:    'scroll' is not always updated.
Solution:   Call win_init_size() at the right place.
This commit is contained in:
Luuk van Baal
2022-09-14 01:27:23 +01:00
committed by Bram Moolenaar
parent 766ae5b252
commit 470a14140b
4 changed files with 6 additions and 1 deletions

View File

@@ -375,6 +375,7 @@ main
* 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.
@@ -539,9 +540,9 @@ vim_main2(void)
// 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
/*