mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 15:13:01 +01:00
Stop printing CTRL-D on EOF
This commit is contained in:
parent
a2700308a7
commit
ab97459d0e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user