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.

Linux: Fix some crashes from new functions having unimplemented!() (#7567)

h3mosphere006e7a77d5dc
diff --git a/crates/gpui/src/platform/linux/platform.rs b/crates/gpui/src/platform/linux/platform.rs
index 9e0c670be50..d2c8f5f854f 100644
--- a/crates/gpui/src/platform/linux/platform.rs
+++ b/crates/gpui/src/platform/linux/platform.rs
@@ -346,7 +346,7 @@ impl Platform for LinuxPlatform {
//todo!(linux)
fn should_auto_hide_scrollbars(&self) -> bool {
- unimplemented!()
+ false
}
//todo!(linux)
@@ -370,7 +370,7 @@ impl Platform for LinuxPlatform {
}
fn window_appearance(&self) -> crate::WindowAppearance {
- unimplemented!()
+ crate::WindowAppearance::Light
}
}
diff --git a/crates/gpui/src/platform/linux/window.rs b/crates/gpui/src/platform/linux/window.rs
index c976fe16be3..ee38c0bd37c 100644
--- a/crates/gpui/src/platform/linux/window.rs
+++ b/crates/gpui/src/platform/linux/window.rs
@@ -294,7 +294,7 @@ impl PlatformWindow for LinuxWindow {
//todo!(linux)
fn appearance(&self) -> WindowAppearance {
- unimplemented!()
+ WindowAppearance::Light
}
fn display(&self) -> Rc<dyn PlatformDisplay> {