To: vim_dev@googlegroups.com Subject: Patch 8.2.4523 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4523 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) Files: src/term.c *** ../vim-8.2.4522/src/term.c 2022-03-02 17:16:33.171278596 +0000 --- src/term.c 2022-03-07 13:26:26.840602440 +0000 *************** *** 3380,3386 **** { // 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)) p_window = Rows - 1; old_Rows = Rows; shell_new_rows(); // update window sizes --- 3380,3387 ---- { // 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 && !option_was_set((char_u *)"window"))) p_window = Rows - 1; old_Rows = Rows; shell_new_rows(); // update window sizes *** ../vim-8.2.4522/src/version.c 2022-03-06 22:21:33.694883719 +0000 --- src/version.c 2022-03-07 13:29:57.260228286 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4523, /**/ -- What is the difference between a professional and an amateur? The ark was built by an amateur; professionals gave us the Titanic. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///