set proper dirty state to redo viewport search

This commit is contained in:
Mitchell Hashimoto
2025-11-24 13:59:50 -08:00
parent 06981175af
commit a4e40c7567
2 changed files with 20 additions and 1 deletions

View File

@@ -1126,6 +1126,12 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
// Update our terminal state
try self.terminal_state.update(self.alloc, state.terminal);
// If our terminal state is dirty at all we need to redo
// the viewport search.
if (self.terminal_state.dirty != .false) {
state.terminal.flags.search_viewport_dirty = true;
}
// Get our scrollbar out of the terminal. We synchronize
// the scrollbar read with frame data updates because this
// naturally limits the number of calls to this method (it