Problem: "2resize" uses size of current window.
Solution: Use size of resized window. (Yasuhiro Matsumoto, closes #7152)
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);
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);
exe other_winnr .. 'resize 10'
call assert_equal(10, winheight(other_winnr))
call assert_equal(&lines - 10 - 3, winheight(0))
+ exe other_winnr .. 'resize +1'
+ exe other_winnr .. 'resize +1'
+ call assert_equal(12, winheight(other_winnr))
+ call assert_equal(&lines - 10 - 3 -2, winheight(0))
%bwipe!
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1856,
/**/
1855,
/**/