Skip to content

Commit

Permalink
fix(cli): interrupt multiline query with ^C (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Apr 24, 2023
1 parent 38101af commit 6b5a7d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ impl Session {
eprintln!("io err: {err}");
}
ReadlineError::Interrupted => {
self.query = None;
println!("^C");
}
ReadlineError::Eof => {
Expand Down

0 comments on commit 6b5a7d6

Please sign in to comment.