aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorNNB2021-12-02 12:33:31 +0000
committerBlaž Hrastnik2021-12-13 15:48:45 +0000
commitd9727868dd7a496d33a321faeacfcd02d8c1c06e (patch)
tree1f1017a54b0ab049e3b10569ef38aa9c0d417ecc /helix-view/src
parent3080be82687548e06a05e517e09a36721b769f03 (diff)
change to .unwrap_or_default() and fix ui.window and ui.statusline
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/theme.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index a5dc0609..6ca021a9 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -151,7 +151,7 @@ impl Theme {
pub fn get(&self, scope: &str) -> Style {
self.try_get(scope)
- .unwrap_or_else(|| Style::default().fg(Color::Rgb(0, 0, 255)))
+ .unwrap_or_default()
}
pub fn try_get(&self, scope: &str) -> Option<Style> {