render: resize: ignore unconfigured windows

This commit is contained in:
Daniel Eklöf 2020-02-26 12:21:03 +01:00
parent 2f587f6f3d
commit f960e7aff7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1140,6 +1140,9 @@ render_search_box(struct terminal *term)
static bool
maybe_resize(struct terminal *term, int width, int height, bool force)
{
if (!term->window->is_configured)
return false;
if (term->cell_width == 0 && term->cell_height == 0)
return false;