Mercurial > vim
comparison src/main.c @ 30251:0288baaedf91 v9.0.0461
patch 9.0.0461: 'scroll' is not always updated
Commit: https://github.com/vim/vim/commit/470a14140bc06f1653edf26ab0b3c9b801080353
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Wed Sep 14 01:27:23 2022 +0100
patch 9.0.0461: 'scroll' is not always updated
Problem: 'scroll' is not always updated.
Solution: Call win_init_size() at the right place.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 14 Sep 2022 02:30:03 +0200 |
parents | 91ecee475811 |
children | 584231b9b37e |
comparison
equal
deleted
inserted
replaced
30250:c3b37b9e8919 | 30251:0288baaedf91 |
---|---|
373 | 373 |
374 /* | 374 /* |
375 * Set the default values for the options that use Rows and Columns. | 375 * Set the default values for the options that use Rows and Columns. |
376 */ | 376 */ |
377 ui_get_shellsize(); // inits Rows and Columns | 377 ui_get_shellsize(); // inits Rows and Columns |
378 win_init_size(); | |
378 #ifdef FEAT_DIFF | 379 #ifdef FEAT_DIFF |
379 // Set the 'diff' option now, so that it can be checked for in a .vimrc | 380 // Set the 'diff' option now, so that it can be checked for in a .vimrc |
380 // file. There is no buffer yet though. | 381 // file. There is no buffer yet though. |
381 if (params.diff_mode) | 382 if (params.diff_mode) |
382 diff_win_options(firstwin, FALSE); | 383 diff_win_options(firstwin, FALSE); |
537 | 538 |
538 // When running "evim" or "gvim -y" we need the menus, exit if we | 539 // When running "evim" or "gvim -y" we need the menus, exit if we |
539 // don't have them. | 540 // don't have them. |
540 if (!gui.in_use && params.evim_mode) | 541 if (!gui.in_use && params.evim_mode) |
541 mch_exit(1); | 542 mch_exit(1); |
542 } | 543 firstwin->w_prev_height = firstwin->w_height; // may have changed |
543 #endif | 544 } |
544 win_init_size(); | 545 #endif |
545 | 546 |
546 #ifdef FEAT_VIMINFO | 547 #ifdef FEAT_VIMINFO |
547 /* | 548 /* |
548 * Read in registers, history etc, but not marks, from the viminfo file. | 549 * Read in registers, history etc, but not marks, from the viminfo file. |
549 * This is where v:oldfiles gets filled. | 550 * This is where v:oldfiles gets filled. |