summaryrefslogtreecommitdiffstats
path: root/src/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.rs')
-rw-r--r--src/repl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repl.rs b/src/repl.rs
index f8a10a3..bb33bc1 100644
--- a/src/repl.rs
+++ b/src/repl.rs
@@ -196,10 +196,10 @@ struct ReplCmdHandlerState {
impl ReplCmdHandler {
pub fn init(client: ChatGptClient, config: Arc<Config>, role: Option<Role>) -> Result<Self> {
- let render = if config.highlight {
- Some(Arc::new(MarkdownRender::init()?))
- } else {
+ let render = if config.no_highlight {
None
+ } else {
+ Some(Arc::new(MarkdownRender::init()?))
};
let prompt = role.map(|v| v.prompt).unwrap_or_default();
let save_file = config.open_message_file()?;