summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRory Dudley2024-02-17 19:50:00 -0700
committerRory Dudley2024-02-17 19:50:00 -0700
commit55ff53d3a8b4cb879a50918f4df491c6043de9dd (patch)
treec5a898785e0bb0419e1b702e4a5bc8d7e1dee82a /src
parent0c01a478fa57cbd0c4e7836d1b4e697014da4d67 (diff)
downloaddwarvish-55ff53d3a8b4cb879a50918f4df491c6043de9dd.tar.gz
EOF behavior
Print a newline before quitting when we receive an EOF.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
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. <C-d>)
if bytes == 0 {
+ println!("");
break;
}