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 border and minimap flickering on pane split (#33973)

Alvaro Parker8dca4d150eb4
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index 99ab3cf6b71..dc2c6516dd6 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -3842,11 +3842,13 @@ impl Workspace {
if *local {
self.unfollow_in_pane(&pane, window, cx);
}
+ serialize_workspace = *focus_changed || pane != self.active_pane();
if pane == self.active_pane() {
self.active_item_path_changed(window, cx);
self.update_active_view_for_followers(window, cx);
+ } else if *local {
+ self.set_active_pane(&pane, window, cx);
}
- serialize_workspace = *focus_changed || pane != self.active_pane();
}
pane::Event::UserSavedItem { item, save_intent } => {
cx.emit(Event::UserSavedItem {