summaryrefslogtreecommitdiffstats
path: root/src/repl/handler.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-08 17:13:11 +0800
committerGitHub <noreply@github.com>2023-03-08 17:13:11 +0800
commit2539e24fe9eadf69cb20b01d2303a99fa2e8a363 (patch)
treeb1b4b6a9e9df9d16870219a53b75a4456829a005 /src/repl/handler.rs
parentee812754313ebd16d34dff3d925afc4402c029fa (diff)
downloadaichat-2539e24fe9eadf69cb20b01d2303a99fa2e8a363.tar.gz
chore: improve code by getting prompt from config (#39)
Diffstat (limited to 'src/repl/handler.rs')
-rw-r--r--src/repl/handler.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/repl/handler.rs b/src/repl/handler.rs
index 59c8af5..5855208 100644
--- a/src/repl/handler.rs
+++ b/src/repl/handler.rs
@@ -49,11 +49,9 @@ impl ReplCmdHandler {
return Ok(());
}
let highlight = self.config.borrow().highlight;
- let prompt = self.config.borrow().get_prompt();
let wg = WaitGroup::new();
let ret = render_stream(
&input,
- prompt,
&self.client,
highlight,
true,