Ctrl c exit issue (#2548)

* fix ctrl_c problem on windows

* updated cargo.lock
This commit is contained in:
Darren Schroeder
2020-09-15 09:59:51 -05:00
committed by GitHub
parent 232aca76a4
commit 04451af776
2 changed files with 3 additions and 3 deletions

View File

@ -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 {