Mercurial > octave-nkf
diff liboctave/cmd-edit.cc @ 4527:c0a23a13eea2
[project @ 2003-10-03 02:52:46 by jwe]
author | jwe |
---|---|
date | Fri, 03 Oct 2003 02:52:46 +0000 |
parents | 62afb31c1f85 |
children | cba347c642e2 |
line wrap: on
line diff
--- a/liboctave/cmd-edit.cc Thu Oct 02 18:33:59 2003 +0000 +++ b/liboctave/cmd-edit.cc Fri Oct 03 02:52:46 2003 +0000 @@ -481,12 +481,10 @@ std::string default_command_editor::do_readline (const std::string& prompt, bool& eof) { - eof = false; - fprintf (output_stream, prompt.c_str ()); fflush (output_stream); - return octave_fgetl (input_stream); + return octave_fgetl (input_stream, eof); } void