Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix tab bar button's focus handling lagging behind

Thorsten Ball027f425804cb
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 10209f6e880..cc7eeb1a8a3 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -1470,7 +1470,7 @@ impl Pane {
),
)
})
- .when(self.was_focused || self.has_focus(cx), |tab_bar| {
+ .when(self.has_focus(cx), |tab_bar| {
tab_bar.end_child({
let render_tab_buttons = self.render_tab_bar_buttons.clone();
render_tab_buttons(self, cx)