mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 05:34:14 +00:00
Fixed CTRL+C behaviour (#95)
This commit is contained in:
parent
8d73153565
commit
f7399b1dfd
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue