Fixed CTRL+C behaviour (#95)

This commit is contained in:
kat 2021-05-12 21:45:13 +01:00 committed by GitHub
parent 8d73153565
commit f7399b1dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,8 @@ pub fn interactive(config: &Config) -> Result<()> {
};
println!();
}
Err(ReadlineError::Eof) | Err(ReadlineError::Interrupted) => {
Err(ReadlineError::Interrupted) => {}
Err(ReadlineError::Eof) => {
save_history(&mut rl);
break;
}