diff liboctave/cmd-edit.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 eb63fbe60fab
children 3cee58bf4acf
line wrap: on
line diff
--- a/liboctave/cmd-edit.cc
+++ b/liboctave/cmd-edit.cc
@@ -837,6 +837,13 @@
 #endif
 }
 
+void 
+command_editor::force_default_editor (void)
+{
+  delete instance;
+  instance = new default_command_editor ();
+}
+
 int
 command_editor::startup_handler (void)
 {