vim-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 vim/vim#8011)
0a1a6a1aa4

Cherry-pick Test_w_arg() from patch v8.2.0509.
This commit is contained in:
Jan Edmund Lazo
2021-03-26 18:41:59 -04:00
parent a177820420
commit 3b04ba7544
2 changed files with 33 additions and 2 deletions

View File

@@ -7609,8 +7609,9 @@ void win_new_shellsize(void)
static long old_Columns = 0;
if (old_Rows != Rows) {
// if 'window' uses the whole screen, keep it using that */
if (p_window == old_Rows - 1 || old_Rows == 0) {
// 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;