diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index 69b6be5f249b811273aed8ecd96ed82493a3596a..48073aee51a376d3700a3f818081f87fd24c5ee1 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");