Mercurial > vim
changeset 27996:3ae5bc51d39d v8.2.4523
patch 8.2.4523: when gvim is started maximized the 'window' option isn't set
Commit: https://github.com/vim/vim/commit/6ca883dd8a585a85acdf9303b434211ea91872a7
Author: K.Takata <kentkt@csc.jp>
Date: Mon Mar 7 13:31:15 2022 +0000
patch 8.2.4523: when gvim is started maximized the 'window' option isn't set
Problem: When gvim is started maximized the 'window' option isn't set
properly. (Christian J. Robinson)
Solution: Check if 'windows' was already set or not. (Ken Takata,
closes #9904)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Mar 2022 14:45:03 +0100 |
parents | 862017450170 |
children | ceb745137863 |
files | src/term.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -3380,7 +3380,8 @@ win_new_shellsize(void) { // If 'window' uses the whole screen, keep it using that. // Don't change it when set with "-w size" on the command line. - if (p_window == old_Rows - 1 || (old_Rows == 0 && p_window == 0)) + if (p_window == old_Rows - 1 + || (old_Rows == 0 && !option_was_set((char_u *)"window"))) p_window = Rows - 1; old_Rows = Rows; shell_new_rows(); // update window sizes