From 8d730846ebd47ad18f5350dcbf730fe816515869 Mon Sep 17 00:00:00 2001 From: Cameron Mcloughlin Date: Fri, 6 Feb 2026 00:57:31 +0000 Subject: [PATCH] git: Side-by-side search matches panic (#48544) Fixes a panic when using a search anchor from one side of a side-by-side in the other. Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/editor/src/split.rs | 2 ++ 1 file changed, 2 insertions(+) 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(); } }