From ab97459d0edde60d06cabc175090c980be8e3c58 Mon Sep 17 00:00:00 2001 From: Jan Koprowski Date: Tue, 3 Sep 2019 21:40:42 +0200 Subject: [PATCH] Stop printing CTRL-D on EOF --- src/cli.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 7cd64531fe..f70fa42d54 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -451,10 +451,7 @@ async fn process_line(readline: Result, 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