aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-01-28 19:55:38 +1000
committerDavid Walter Seikel2014-01-28 19:55:38 +1000
commit83815d8ad93e4a2a8352108e781e7ff853a0e700 (patch)
tree1498f3821834b70ef4cb83813533b2044ad5f852
parentCategorise, comment, extend, and sort the keys we respond to. (diff)
downloadboxes-83815d8ad93e4a2a8352108e781e7ff853a0e700.zip
boxes-83815d8ad93e4a2a8352108e781e7ff853a0e700.tar.gz
boxes-83815d8ad93e4a2a8352108e781e7ff853a0e700.tar.bz2
boxes-83815d8ad93e4a2a8352108e781e7ff853a0e700.tar.xz
Exit editLine on an EOF.
-rw-r--r--boxes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/boxes.c b/boxes.c
index b5ae8cd..8a25798 100644
--- a/boxes.c
+++ b/boxes.c
@@ -1908,6 +1908,7 @@ void editLine(long extra, struct keyCommand *(*lineLoop)(long extra), void (*lin
1908 } 1908 }
1909 else if (j == 0) // End of file. 1909 else if (j == 0) // End of file.
1910 { 1910 {
1911 TT.stillRunning = 0;
1911 fprintf(stderr, "EOF\n"); 1912 fprintf(stderr, "EOF\n");
1912 fflush(stderr); 1913 fflush(stderr);
1913 } 1914 }