summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2022-09-14 01:27:23 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-14 01:27:23 +0100
commit470a14140bc06f1653edf26ab0b3c9b801080353 (patch)
tree3b79c53c438a59326a506cfe032c654cd11edea5 /src/main.c
parent766ae5b252eaa6ee2bff70f1913d1cbfb51101bd (diff)
patch 9.0.0461: 'scroll' is not always updatedv9.0.0461
Problem: 'scroll' is not always updated. Solution: Call win_init_size() at the right place.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 619302aa22..6875ee5d38 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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
/*