Merged in docelic/shelldap (pull request #2)
Reset isearch state on ctrl+c when using Readline 7
Approved-by: Mahlon E. Smith <mahlon@martini.nu>
--- a/shelldap Mon May 13 10:46:30 2019 -0700
+++ b/shelldap Fri May 17 18:12:47 2019 +0000
@@ -2769,7 +2769,11 @@
sub ctrl_c_handler {
print "\n";
$shell->term->on_new_line;
- $shell->term->replace_line('', 0);
+ $shell->term->kill_text;
+ $shell->term->callback_sigcleanup;
+ $shell->term->free_line_state;
+ $shell->term->cleanup_after_signal;
+ $shell->term->callback_handler_remove;
$shell->term->redisplay;
}
my $sigaction = POSIX::SigAction->new( \&ctrl_c_handler, $sigset, 0);