Always resize the embedded vterm properly

This commit is contained in:
Marco Hinz
2016-06-20 18:20:19 +02:00
parent 7df9dd33a1
commit cc8f477d18
3 changed files with 8 additions and 9 deletions

View File

@@ -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;
}