terminal : don't set vterm size to 0 (workaround #2732)

This commit is contained in:
Frederik Van Slycken
2015-05-29 17:15:48 +02:00
committed by Justin M. Keyes
parent 8c84c124ed
commit e54fa04b90
2 changed files with 29 additions and 25 deletions

View File

@@ -313,6 +313,10 @@ void terminal_resize(Terminal *term, uint16_t width, uint16_t height)
return;
}
if (height == 0 || width == 0) {
return;
}
vterm_set_size(term->vt, height, width);
vterm_screen_flush_damage(term->vts);
term->pending_resize = true;