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 macOS traffic light position when performing a project search (#55310)

Bennet Bo Fenner65e3cc246229
diff --git a/crates/gpui_macos/src/window.rs b/crates/gpui_macos/src/window.rs
index b8dafbbc90b..c4c47c4f542 100644
--- a/crates/gpui_macos/src/window.rs
+++ b/crates/gpui_macos/src/window.rs
@@ -1482,6 +1482,10 @@ impl PlatformWindow for MacWindow {
let filename = path.map_or(ns_string(""), |p| ns_string(&p.to_string_lossy()));
let _: () = msg_send![window, setRepresentedFilename: filename];
}
+
+ // Changing the document path state resets the traffic light position,
+ // so we have to move it again.
+ self.0.lock().move_traffic_light();
}
fn show_character_palette(&self) {