summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-04 09:22:55 +0800
committerGitHub <noreply@github.com>2023-03-04 09:22:55 +0800
commitdbdb2ed125214d7dab9dd2ef6ed03e1062b7cc27 (patch)
tree678fe6be7439c31e5cc804cf20d9cf30ccbff3d1 /src/main.rs
parent0fa1ae215ac1434591968818f8f75ad5b35d52ec (diff)
downloadaichat-dbdb2ed125214d7dab9dd2ef6ed03e1062b7cc27.tar.gz
refactor: replace config.highlight with config.no_highlight (#4)
* refactor: replace config.highlight with config.no_highlight * update readme
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
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 {