From 4bc74f7e9006fc7f182c9dc6ea309ea83c5bb4f9 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 8 Oct 2024 12:38:31 +0800 Subject: 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 --- src/repl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl/mod.rs') 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!() } } -- cgit v1.2.3