From cc8f477d18ef872b1f8850213a23c4fe333f2fcf Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 20 Jun 2016 18:20:19 +0200 Subject: Always resize the embedded vterm properly --- src/nvim/terminal.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/nvim/terminal.c') diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index 3e41926b70..fd416b3dcc 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -348,15 +348,6 @@ void terminal_resize(Terminal *term, uint16_t width, uint16_t height) height = (uint16_t)curheight; } - // The new width/height are the minimum for all windows that display the - // terminal in the current tab. - FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { - if (!wp->w_closing && wp->w_buffer->terminal == term) { - width = (uint16_t)MIN(width, (uint16_t)(wp->w_width - win_col_off(wp))); - height = (uint16_t)MIN(height, (uint16_t)wp->w_height); - } - } - if (curheight == height && curwidth == width) { return; } -- cgit