summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-10-08 12:38:31 +0800
committerGitHub <noreply@github.com>2024-10-08 12:38:31 +0800
commit4bc74f7e9006fc7f182c9dc6ea309ea83c5bb4f9 (patch)
tree1ed8ef0b37879ea543fe1ba2060757e4079c90ce /src/repl/mod.rs
parentc211d1e43a02266226fb8d04856e703a4e6a625d (diff)
downloadaichat-4bc74f7e9006fc7f182c9dc6ea309ea83c5bb4f9.tar.gz
refactor: NO_COLOR, highlight and render_error (#915)
- If NO_COLOR is enabled, AIChat will not output any ANSI color codes. - `config.highlight` will only affect rendering markdown - improve rendering error
Diffstat (limited to 'src/repl/mod.rs')
-rw-r--r--src/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 5a99ae9..a7b2573 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -211,7 +211,7 @@ impl Repl {
}
}
Err(err) => {
- render_error(err, self.config.read().highlight);
+ render_error(err);
println!()
}
}