diff --git a/src/repl.rs b/src/repl.rs index fee47fa..73d45eb 100644 --- a/src/repl.rs +++ b/src/repl.rs @@ -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; }