diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-17 17:39:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-17 17:39:55 +0200 |
commit | 9668cc57a1e70c99163f90f58202e206d12f40c8 (patch) | |
tree | a6d64b73f149a8989649393fdb9eb59ff404266f /src/ex_docmd.c | |
parent | e13bdec6b90b3a0fce4f021e3ee986e731cea3b5 (diff) | |
download | vim-git-9668cc57a1e70c99163f90f58202e206d12f40c8.tar.gz |
patch 8.2.1856: "2resize" uses size of current windowv8.2.1856
Problem: "2resize" uses size of current window.
Solution: Use size of resized window. (Yasuhiro Matsumoto, closes #7152)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 66c0b667a..1ccd38ec9 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -6365,7 +6365,7 @@ ex_resize(exarg_T *eap) if (cmdmod.split & WSP_VERT) { if (*eap->arg == '-' || *eap->arg == '+') - n += curwin->w_width; + n += wp->w_width; else if (n == 0 && eap->arg[0] == NUL) // default is very wide n = 9999; win_setwidth_win((int)n, wp); @@ -6373,7 +6373,7 @@ ex_resize(exarg_T *eap) else { if (*eap->arg == '-' || *eap->arg == '+') - n += curwin->w_height; + n += wp->w_height; else if (n == 0 && eap->arg[0] == NUL) // default is very high n = 9999; win_setheight_win((int)n, wp); |