From 4a88a3da04eca58cea59e42fbed86895d6053e62 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 11 Apr 2024 08:14:08 +0800 Subject: refactor: `ctrlc_exit` config default to false (#403) --- src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index 1643b4e..6291d5c 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -62,7 +62,7 @@ pub struct Config { pub wrap: Option, /// Whether wrap code block pub wrap_code: bool, - /// Whether to exit REPL by pressing Ctrl+C twice + /// Whether to exit REPL when Ctrl+C is pressed pub ctrlc_exit: bool, /// Automatically copy the last output to the clipboard pub auto_copy: bool, @@ -111,7 +111,7 @@ impl Default for Config { light_theme: false, wrap: None, wrap_code: false, - ctrlc_exit: true, + ctrlc_exit: false, auto_copy: false, keybindings: Default::default(), prelude: String::new(), -- cgit v1.2.3