From e7f5ec55617f9f6cddfd78b3c42960f757705f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 7 Feb 2022 10:28:05 +0900 Subject: [PATCH] fix: There is no such thing as markup.normal, use ui.text --- helix-term/src/ui/markdown.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs index 003266d3..6a7b641a 100644 --- a/helix-term/src/ui/markdown.rs +++ b/helix-term/src/ui/markdown.rs @@ -22,7 +22,6 @@ pub struct Markdown { config_loader: Arc, - text_style: String, block_style: String, heading_style: String, } @@ -35,14 +34,12 @@ impl Markdown { Self { contents, config_loader, - text_style: "markup.normal".into(), block_style: "markup.raw.inline".into(), heading_style: "markup.heading".into(), } } pub fn style_group(mut self, suffix: &str) -> Self { - self.text_style = format!("markup.normal.{}", suffix); self.block_style = format!("markup.raw.inline.{}", suffix); self.heading_style = format!("markup.heading.{}", suffix); self @@ -78,7 +75,7 @@ impl Markdown { .unwrap_or_default() }; } - let text_style = get_theme!(self.text_style); + let text_style = theme.map(|theme| theme.get("ui.text")).unwrap_or_default(); let code_style = get_theme!(self.block_style); let heading_style = get_theme!(self.heading_style);