mirror of
https://github.com/nushell/nushell.git
synced 2025-01-03 13:00:08 +01:00
Merge pull request #589 from jankoprowski/eof
Stop printing CTRL-D on EOF
This commit is contained in:
commit
c6c4d4ddb1
@ -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