mirror of
https://github.com/nushell/nushell.git
synced 2025-01-05 05:50:14 +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())
|
LineResult::Success(line.clone())
|
||||||
}
|
}
|
||||||
Err(ReadlineError::Interrupted) => LineResult::CtrlC,
|
Err(ReadlineError::Interrupted) => LineResult::CtrlC,
|
||||||
Err(ReadlineError::Eof) => {
|
Err(ReadlineError::Eof) => LineResult::Break,
|
||||||
println!("CTRL-D");
|
|
||||||
LineResult::Break
|
|
||||||
}
|
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
println!("Error: {:?}", err);
|
println!("Error: {:?}", err);
|
||||||
LineResult::Break
|
LineResult::Break
|
||||||
|
Loading…
Reference in New Issue
Block a user