Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal: Update search match highlights on resize (#43507)
Anthony Eid88ef5b137fc4
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rsindex 69b6be5f249..48073aee51a 100644--- a/crates/terminal/src/terminal.rs+++ b/crates/terminal/src/terminal.rs@@ -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");