From 36a560c3e73f4e5eff9f0ba2e6c6764afa0d2e6f Mon Sep 17 00:00:00 2001 From: fairyhunter13 <12372147+fairyhunter13@users.noreply.github.com> Date: Mon, 5 Oct 2026 20:24:27 +0700 Subject: [PATCH] Fix stale Unicode placeholder images after a synchronized update While rendering is paused, screen_update_cell_data() rendered the line graphics of the snapshot lines into the live graphics manager. Paused frames draw paused_rendering.grman, so those cell image refs were never shown during the pause, and after the pause they stayed at rows whose live lines had since scrolled or been overwritten: the live line has no placeholders, so screen_render_line_graphics() returns early and never removes them. --- kitty/screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index 6010c35a1..fc6f73826 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -4078,7 +4078,8 @@ screen_update_cell_data(Screen *self, void *address, FONTS_DATA_HANDLE fonts_dat linebuf_init_line(linebuf, y); if (linebuf->line->attrs.has_dirty_text) { render_line(fonts_data, linebuf->line, y, &self->paused_rendering.cursor, self->disable_ligatures, self->lc); - screen_render_line_graphics(self, linebuf->line, y); + // No screen_render_line_graphics() here: it writes to the live grman, but paused frames draw + // paused_rendering.grman, so the refs would only outlive the pause over rows that no longer hold placeholders. if (linebuf->line->attrs.has_dirty_text && screen_has_marker(self)) mark_text_in_line(self->marker, linebuf->line, &self->as_ansi_buf); linebuf_mark_line_clean(linebuf, y); }