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:
1 parent
96d1fcdcbf
commit
7b69f0d54f
1 file changed
+1
-1
@@ -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