From 2895d31d8365b7c1c6ec6e3007bc8688019ab97f Mon Sep 17 00:00:00 2001 From: Andrew Farkas <6060305+HactarCE@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:38:52 -0500 Subject: [PATCH] Fix tab switcher close item using wrong pane (#42138) Closes #40646 Release Notes: - Fixed `tab_switcher::CloseSelectedItem` doing nothing on tab in inactive pane Co-authored-by: Cole Miller --- crates/tab_switcher/src/tab_switcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tab_switcher/src/tab_switcher.rs b/crates/tab_switcher/src/tab_switcher.rs index 8b582796b371dc7e10f1bd72f406064fe6be80d1..8ffa33183126cd5578ed7305c3ece3f0821e8d5c 100644 --- a/crates/tab_switcher/src/tab_switcher.rs +++ b/crates/tab_switcher/src/tab_switcher.rs @@ -537,7 +537,7 @@ impl TabSwitcherDelegate { let Some(tab_match) = self.matches.get(ix) else { return; }; - let Some(pane) = self.pane.upgrade() else { + let Some(pane) = tab_match.pane.upgrade() else { return; }; pane.update(cx, |pane, cx| {