From dbdb2ed125214d7dab9dd2ef6ed03e1062b7cc27 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 4 Mar 2023 09:22:55 +0800 Subject: refactor: replace config.highlight with config.no_highlight (#4) * refactor: replace config.highlight with config.no_highlight * update readme --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 893850a..2d72c3e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,7 @@ fn start_directive( let mut file = config.open_message_file()?; let output = client.acquire(input, role.map(|v| v.prompt))?; let output = output.trim(); - if config.highlight && stdout().is_terminal() { + if !config.no_highlight && stdout().is_terminal() { let markdown_render = MarkdownRender::init()?; markdown_render.print(output)?; } else { -- cgit v1.2.3