diff liboctave/util/oct-rl-edit.c @ 19378:f7ccd02bc060 gui-release

provide access to the readline variable rl_erase_empty_line * cmd-edit.h, cmd-edit.cc (command_editor::erase_empty_line, command_editor::do_erase_empty_line, gnu_readline::do_erase_empty_line): New functions. * oct-rl-edit.h, oct-rl-edit.c (octave_rl_erase_empty_line): New function.
author John W. Eaton <jwe@octave.org>
date Thu, 04 Dec 2014 15:56:49 -0500
parents 735bc47d18af
children 5db5619fe54e
line wrap: on
line diff
--- a/liboctave/util/oct-rl-edit.c	Tue Dec 02 10:00:48 2014 -0500
+++ b/liboctave/util/oct-rl-edit.c	Thu Dec 04 15:56:49 2014 -0500
@@ -74,6 +74,14 @@
   rl_variable_bind ("blink-matching-paren", val ? "1" : "0");
 }
 
+int
+octave_rl_erase_empty_line (int val)
+{
+  int retval = rl_erase_empty_line;
+  rl_erase_empty_line = val;
+  return retval;
+}
+
 /* It would be much simpler if we could just call _rl_clear_screen to
    only clear the screen, but it is not a public function, and on some
    systems, it is not exported from shared library versions of