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.

Pane: Fix flicker when opening/closing tabs

Piotr Osiewiczb4a205b37c1b
diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs
index 9e620d993a3..594c2a0b787 100644
--- a/crates/workspace2/src/pane.rs
+++ b/crates/workspace2/src/pane.rs
@@ -1687,7 +1687,7 @@ impl Pane {
),
)
})
- .when(self.has_focus(cx), |tab_bar| {
+ .when(self.was_focused || 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)