diff options
Diffstat (limited to 'src/nvim/screen.c')
| -rw-r--r-- | src/nvim/screen.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 1e20b77c5c..760a54a316 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -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; | 
