Skip to content

Commit 46a5906

Browse files
committed
Do not exit the repl when Ctrl-C is pressed, fixes #6870
1 parent a1c9273 commit 46a5906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/repl_cli/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ pub fn main() -> i32 {
9292
return 0;
9393
}
9494
Err(ReadlineError::Interrupted) => {
95+
// Ctrl-C was pressed
9596
eprintln!("CTRL-C");
96-
return 1;
9797
}
9898
Err(err) => {
9999
eprintln!("REPL error: {err:?}");

0 commit comments

Comments
 (0)