diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index 8078e011d..192721708 100644 --- a/src/window.c +++ b/src/window.c @@ -2282,7 +2282,7 @@ win_close(win_T *win, int free_buf) int dir; int help_window = FALSE; tabpage_T *prev_curtab = curtab; - frame_T *win_frame = win->w_frame; + frame_T *win_frame = win->w_frame->fr_parent; if (last_window()) { @@ -2462,8 +2462,7 @@ win_close(win_T *win, int free_buf) if (p_ea && (*p_ead == 'b' || *p_ead == dir)) /* If the frame of the closed window contains the new current window, * only resize that frame. Otherwise resize all windows. */ - win_equal(curwin, - curwin->w_frame->fr_parent == win_frame->fr_parent, dir); + win_equal(curwin, curwin->w_frame->fr_parent == win_frame, dir); else win_comp_pos(); if (close_curwin) |