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 flipped boolean

Mikayla Makida9401414160
diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rs
index 586f444ebbf..69c06c85add 100644
--- a/crates/theme/src/theme.rs
+++ b/crates/theme/src/theme.rs
@@ -822,9 +822,9 @@ impl<T> Toggleable<T> {
}
pub fn in_state(&self, active: bool) -> &T {
if active {
- &self.inactive
- } else {
&self.active
+ } else {
+ &self.inactive
}
}
pub fn active_state(&self) -> &T {