renderer: reset search dirty state after processing

pull/9687/head
Mitchell Hashimoto 2025-11-24 13:36:10 -08:00
parent d0e3a79a74
commit 06981175af
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 2 additions and 0 deletions

View File

@ -1193,6 +1193,8 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
// Clear our highlight state and update.
if (self.search_matches_dirty or self.terminal_state.dirty != .false) {
self.search_matches_dirty = false;
for (self.terminal_state.row_data.items(.highlights)) |*highlights| {
highlights.clearRetainingCapacity();
}