comparison src/term.c @ 24228:1e85e76f9e76 v8.2.2655

patch 8.2.2655: The -w command line argument doesn't work Commit: https://github.com/vim/vim/commit/0a1a6a1aa4004d0e4d64cc375540156b8bd92a87 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 26 14:14:18 2021 +0100 patch 8.2.2655: The -w command line argument doesn't work Problem: The -w command line argument doesn't work. Solution: Don't set 'window' when set with the -w argument. (closes https://github.com/vim/vim/issues/8011)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Mar 2021 14:15:03 +0100
parents 9f64c420f280
children 9299d21d1d5d
comparison
equal deleted inserted replaced
24227:dc3e9b290b7e 24228:1e85e76f9e76
3363 3363
3364 if (old_Rows != Rows || old_Columns != Columns) 3364 if (old_Rows != Rows || old_Columns != Columns)
3365 ui_new_shellsize(); 3365 ui_new_shellsize();
3366 if (old_Rows != Rows) 3366 if (old_Rows != Rows)
3367 { 3367 {
3368 // if 'window' uses the whole screen, keep it using that 3368 // If 'window' uses the whole screen, keep it using that.
3369 if (p_window == old_Rows - 1 || old_Rows == 0) 3369 // Don't change it when set with "-w size" on the command line.
3370 if (p_window == old_Rows - 1 || (old_Rows == 0 && p_window == 0))
3370 p_window = Rows - 1; 3371 p_window = Rows - 1;
3371 old_Rows = Rows; 3372 old_Rows = Rows;
3372 shell_new_rows(); // update window sizes 3373 shell_new_rows(); // update window sizes
3373 } 3374 }
3374 if (old_Columns != Columns) 3375 if (old_Columns != Columns)