From 55ff53d3a8b4cb879a50918f4df491c6043de9dd Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Sat, 17 Feb 2024 19:50:00 -0700 Subject: EOF behavior Print a newline before quitting when we receive an EOF. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 322381c..4c7c49a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,6 +28,7 @@ fn eval(paths: &[&str], prompt: &str) { // Check if we've reached EOF (i.e. ) if bytes == 0 { + println!(""); break; } -- cgit v1.2.3