Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Dec 24, 2024
1 parent 140b611 commit 50e5b33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kitty/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ handle_delete_command(GraphicsManager *self, const GraphicsCommand *g, Cursor *c
}
} img = NULL; break;
}
if (img && !vt_size(&img->refs_by_internal_id)) remove_image(self, img);
if (img && !vt_size(&img->refs_by_internal_id)) { remove_image(self, img); goto end; }
}
switch (g->delete_action) {
#define I(u, data, func) filter_refs(self, data, g->delete_action == u, func, cell, false, true); *is_dirty = true; break
Expand Down Expand Up @@ -2153,6 +2153,7 @@ handle_delete_command(GraphicsManager *self, const GraphicsCommand *g, Cursor *c
#undef D
#undef I
}
end:
if (!vt_size(&self->images_by_internal_id) && self->render_data.count) self->render_data.count = 0;
}

Expand Down

0 comments on commit 50e5b33

Please sign in to comment.