diff options
author | Rory Dudley | 2024-02-17 19:50:00 -0700 |
---|---|---|
committer | Rory Dudley | 2024-02-17 19:50:00 -0700 |
commit | 55ff53d3a8b4cb879a50918f4df491c6043de9dd (patch) | |
tree | c5a898785e0bb0419e1b702e4a5bc8d7e1dee82a /src | |
parent | 0c01a478fa57cbd0c4e7836d1b4e697014da4d67 (diff) | |
download | dwarvish-55ff53d3a8b4cb879a50918f4df491c6043de9dd.tar.gz |
EOF behavior
Print a newline before quitting when we receive an EOF.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 1 |
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; } |