diff --git a/kitty/graphics.c b/kitty/graphics.c index 310ade96f..115376255 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -789,6 +789,7 @@ handle_delete_command(GraphicsManager *self, const GraphicsCommand *g, Cursor *c #undef D #undef I } + if (!self->image_count && self->count) self->count = 0; } // }}}