diff --git a/crates/editor/src/split.rs b/crates/editor/src/split.rs index f33636acf999904ccec9685e3238594dfe10de64..6b4a6bf46f08c1fe25c52d5d38d2ced80aa9c40d 100644 --- a/crates/editor/src/split.rs +++ b/crates/editor/src/split.rs @@ -492,6 +492,7 @@ impl SplittableEditor { if let Some(lhs) = &mut this.lhs { if !lhs.was_last_focused { lhs.was_last_focused = true; + cx.emit(SearchEvent::MatchesInvalidated); cx.notify(); } } @@ -504,6 +505,7 @@ impl SplittableEditor { if let Some(lhs) = &mut this.lhs { if lhs.was_last_focused { lhs.was_last_focused = false; + cx.emit(SearchEvent::MatchesInvalidated); cx.notify(); } }