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 <cole@zed.dev>
This commit is contained in:
co-authored by
Cole Miller
parent
a112153a2e
commit
2895d31d83
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user