diff --git a/history-search-multi-word b/history-search-multi-word index cbdf754..a1baa8a 100644 --- a/history-search-multi-word +++ b/history-search-multi-word @@ -241,6 +241,10 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then zle -N "$pdown_widget" _hsmw_simulate_widget zle -N "$pup_widget" _hsmw_simulate_widget + # Trap INT to manually interrupt Zle to work around a bug + setopt localtraps + trap 'zle && zle .send-break' INT + if zle .recursive-edit -K hsmw; then BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}" CURSOR="${#BUFFER}"