From 8dca4d150eb43dad60568d5bb0ec3b5c66722d77 Mon Sep 17 00:00:00 2001 From: Alvaro Parker <64918109+AlvaroParker@users.noreply.github.com> Date: Tue, 15 Jul 2025 04:47:35 -0400 Subject: [PATCH] Fix border and minimap flickering on pane split (#33973) Closes #33972 As noted on https://github.com/zed-industries/zed/pull/31390#discussion_r2147473526, when splitting panes and having a border size set for the active pane, or the minimap visibility configured to the active editor only, zed will shortly show a flicker of the border or the minimap on the pane that's being deactivated. Release Notes: - Fixed an issue where pane activations would sometimes have a brief delay, causing a flicker in the process. --- crates/workspace/src/workspace.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 99ab3cf6b7..dc2c6516dd 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 {