Merged in docelic/shelldap (pull request #2)
authorMahlon E. Smith <mahlon@martini.nu>
Fri, 17 May 2019 18:12:47 +0000
changeset 125 6530284a0ae4
parent 123 42d834bdbb43 (current diff)
parent 124 c1d8da18e65d (diff)
child 126 9e04aa833d37
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>
shelldap
--- 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);