Mercurial > octave-nkf
comparison liboctave/util/oct-rl-edit.h @ 19736: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 |
comparison
equal
deleted
inserted
replaced
19735:f4af02a9a6fc | 19736:c048358da712 |
---|---|
71 extern void octave_rl_restore_terminal_state (void); | 71 extern void octave_rl_restore_terminal_state (void); |
72 | 72 |
73 extern char *octave_rl_copy_line (void); | 73 extern char *octave_rl_copy_line (void); |
74 | 74 |
75 extern void octave_rl_replace_line (const char *s, int clear_undo); | 75 extern void octave_rl_replace_line (const char *s, int clear_undo); |
76 | |
77 extern void octave_rl_kill_full_line (void); | |
76 | 78 |
77 extern void octave_rl_insert_text (const char *); | 79 extern void octave_rl_insert_text (const char *); |
78 | 80 |
79 extern int octave_rl_newline (int, int); | 81 extern int octave_rl_newline (int, int); |
80 | 82 |