Stop printing CTRL-D on EOF

This commit is contained in:
Jan Koprowski 2019-09-03 21:40:42 +02:00
parent a2700308a7
commit ab97459d0e

View File

@ -451,10 +451,7 @@ async fn process_line(readline: Result<String, ReadlineError>, ctx: &mut Context
LineResult::Success(line.clone())
}
Err(ReadlineError::Interrupted) => LineResult::CtrlC,
Err(ReadlineError::Eof) => {
println!("CTRL-D");
LineResult::Break
}
Err(ReadlineError::Eof) => LineResult::Break,
Err(err) => {
println!("Error: {:?}", err);
LineResult::Break