terminal: Update search match highlights on resize (#43507)

The fix for this is emitting a wake-up event to tell the terminal to
recalculate its search highlights on resize.

Release Notes:

- terminal: Fix bug where search match highlights wouldn't update their
position when resizing the terminal.
This commit is contained in:
Anthony Eid
2025-11-26 03:45:54 +00:00
committed by GitHub
parent e13e93063c
commit 88ef5b137f
+6
View File
@@ -992,6 +992,12 @@ impl Terminal {
}
term.resize(new_bounds);
// If there are matches we need to emit a wake up event to
// invalidate the matches and recalculate their locations
// in the new terminal layout
if !self.matches.is_empty() {
cx.emit(Event::Wakeup);
}
}
InternalEvent::Clear => {
trace!("Clearing");