diff src/octave.cc @ 9321:9b87aeb24ea9

avoid using readline at all when line editing suppressed or interpreter embedded
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 09 Jun 2009 12:14:26 +0200
parents 080dc45ea682
children f2d354df53ee 67ad3b58b99a
line wrap: on
line diff
--- a/src/octave.cc
+++ b/src/octave.cc
@@ -786,6 +786,10 @@
   if (! interactive && ! forced_line_editing)
     line_editing = false;
 
+  // Force default line editor if we don't want readline editing.
+  if (! line_editing)
+    command_editor::force_default_editor ();
+
   // These can come after command line args since none of them set any
   // defaults that might be changed by command line options.