forked from extern/nushell
Ctrl c exit issue (#2548)
* fix ctrl_c problem on windows * updated cargo.lock
This commit is contained in:
@ -755,7 +755,7 @@ pub async fn cli(
|
||||
LineResult::CtrlC => {
|
||||
let config_ctrlc_exit = config::config(Tag::unknown())?
|
||||
.get("ctrlc_exit")
|
||||
.map(|s| s.value.expect_string() == "true")
|
||||
.map(|s| s.value.is_true())
|
||||
.unwrap_or(false); // default behavior is to allow CTRL-C spamming similar to other shells
|
||||
|
||||
if !config_ctrlc_exit {
|
||||
|
Reference in New Issue
Block a user