diff liboctave/util/oct-rl-edit.c @ 19702:c048358da712

also kill pending input line when gui command window is cleared (bug #44015) * oct-rl-edit.h, oct-rl-edit.c (octave_rl_kill_full_line): New function. * cmd-edit.h, cmd-edit.cc (command_editor::kill_full_line, command_editor::do_kill_full_line, gnu_readline::do_kill_full_line, default_command_editor::do_kill_full_line): New functions. * main-window.cc (main_window::clear_command_window_callback): Kill pending input line before clearing screen.
author John W. Eaton <jwe@octave.org>
date Thu, 12 Feb 2015 14:32:01 -0500
parents 4197fc428c7d
children cfb58d9805fa
line wrap: on
line diff
--- a/liboctave/util/oct-rl-edit.c	Thu Feb 12 14:12:43 2015 -0500
+++ b/liboctave/util/oct-rl-edit.c	Thu Feb 12 14:32:01 2015 -0500
@@ -150,6 +150,12 @@
 }
 
 void
+octave_rl_kill_full_line (void)
+{
+  rl_kill_full_line (0, 0);
+}
+
+void
 octave_rl_insert_text (const char *s)
 {
   rl_insert_text (s);