mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user