From b6820660654ff7630fdd5697c8c7be3e6a45df29 Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Thu, 27 Oct 2016 15:08:45 +0200 Subject: [PATCH] =?UTF-8?q?Set=20no-op=20trap=20after=20leaving=20recursiv?= =?UTF-8?q?e-edit=20=E2=80=93>=C2=A0ensure=20code=20is=20executed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- history-search-multi-word | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/history-search-multi-word b/history-search-multi-word index 9dc07d8..39c57eb 100644 --- a/history-search-multi-word +++ b/history-search-multi-word @@ -286,6 +286,8 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then trap 'zle && zle .send-break' INT if zle .recursive-edit -K hsmw; then + trap '' INT + if [[ "$__hsmw_hcw_index" -gt "0" ]]; then BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}" CURSOR="${#BUFFER}" @@ -293,6 +295,8 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then BUFFER="" fi else + trap '' INT + BUFFER="" fi POSTDISPLAY=""