diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-17 12:14:14 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-17 12:33:36 -0400 |
commit | e1ec2b0729d54710b6fbdf17e02d030468dbed15 (patch) | |
tree | 93ce699fdc787ed70b5e01e07b7e2fc5738fe599 /src/nvim/ex_docmd.c | |
parent | c8ce098e7109f6d62ea0de59d610fcb6132ad221 (diff) | |
download | rneovim-e1ec2b0729d54710b6fbdf17e02d030468dbed15.tar.gz rneovim-e1ec2b0729d54710b6fbdf17e02d030468dbed15.tar.bz2 rneovim-e1ec2b0729d54710b6fbdf17e02d030468dbed15.zip |
vim-patch:8.2.1856: "2resize" uses size of current window
Problem: "2resize" uses size of current window.
Solution: Use size of resized window. (Yasuhiro Matsumoto, closes vim/vim#7152)
https://github.com/vim/vim/commit/9668cc57a1e70c99163f90f58202e206d12f40c8
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index b4c634292c..71ac542323 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -7138,14 +7138,14 @@ static void ex_resize(exarg_T *eap) n = atol((char *)eap->arg); 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 = Columns; } win_setwidth_win(n, wp); } 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 = Rows-1; } |