diff options
| author | sigoden <sigoden@gmail.com> | 2023-03-04 09:22:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-04 09:22:55 +0800 |
| commit | dbdb2ed125214d7dab9dd2ef6ed03e1062b7cc27 (patch) | |
| tree | 678fe6be7439c31e5cc804cf20d9cf30ccbff3d1 /src/main.rs | |
| parent | 0fa1ae215ac1434591968818f8f75ad5b35d52ec (diff) | |
| download | aichat-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.rs | 2 |
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 { |
