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.
This commit is contained in:
parent
440beb8a90
commit
8dca4d150e
1 changed files with 3 additions and 1 deletions
|
@ -3842,11 +3842,13 @@ impl Workspace {
|
||||||
if *local {
|
if *local {
|
||||||
self.unfollow_in_pane(&pane, window, cx);
|
self.unfollow_in_pane(&pane, window, cx);
|
||||||
}
|
}
|
||||||
|
serialize_workspace = *focus_changed || pane != self.active_pane();
|
||||||
if pane == self.active_pane() {
|
if pane == self.active_pane() {
|
||||||
self.active_item_path_changed(window, cx);
|
self.active_item_path_changed(window, cx);
|
||||||
self.update_active_view_for_followers(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 } => {
|
pane::Event::UserSavedItem { item, save_intent } => {
|
||||||
cx.emit(Event::UserSavedItem {
|
cx.emit(Event::UserSavedItem {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue