changeset 10:69f5d5e42d2b

print newline on EOF in tty mode
author John W. Eaton <jwe@octave.org>
date Thu, 23 May 2019 12:58:58 -0400
parents 822a2fe5bb51
children b652a5528fb1
files tty-main.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tty-main.cpp	Thu May 23 12:36:26 2019 -0400
+++ b/tty-main.cpp	Thu May 23 12:58:58 2019 -0400
@@ -29,7 +29,10 @@
         char *tmp = readline (parser::beg_of_stmt ? ">> " : "");
 
         if (! tmp)
-          break;
+          {
+            std::cout << "\n";
+            break;
+          }
 
         if (*tmp)
           {