:terminal : fix crash on resize (#7547)

closes #7538
Fix wrong window references from #7440

Remove some eager resizing. Still mostly doesn't address #4997.
This commit is contained in:
Justin M. Keyes
2017-11-13 02:06:32 +01:00
committed by GitHub
parent 20c672a460
commit e6beb60da5
5 changed files with 62 additions and 86 deletions

View File

@@ -696,8 +696,8 @@ static void win_update(win_T *wp)
if (buf->terminal) {
terminal_resize(buf->terminal,
(uint16_t)(MAX(0, curwin->w_width - win_col_off(curwin))),
(uint16_t)curwin->w_height);
(uint16_t)(MAX(0, wp->w_width - win_col_off(wp))),
(uint16_t)wp->w_height);
}
} else if (buf->b_mod_set
&& buf->b_mod_xlines != 0