diff --git a/render.c b/render.c index 47017ea4..139bedb9 100644 --- a/render.c +++ b/render.c @@ -960,7 +960,7 @@ reflow(struct row **new_grid, int new_cols, int new_rows, /* Move to terminal.c? */ void -render_resize(struct terminal *term, int width, int height) +render_resize(struct terminal *term, int width, int height, bool refresh) { int scale = -1; tll_foreach(term->window->on_outputs, it) { @@ -1083,7 +1083,8 @@ render_resize(struct terminal *term, int width, int height) term->render.last_cursor.cell = NULL; term_damage_view(term); - render_refresh(term); + if (refresh) + render_refresh(term); } void diff --git a/render.h b/render.h index ad6b6578..e3253074 100644 --- a/render.h +++ b/render.h @@ -6,7 +6,7 @@ struct font *attrs_to_font( const struct terminal *term, const struct attributes *attrs); void grid_render(struct terminal *term); -void render_resize(struct terminal *term, int width, int height); +void render_resize(struct terminal *term, int width, int height, bool refresh); void render_set_title(struct terminal *term, const char *title); void render_refresh(struct terminal *term);