mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
hsmw: Manually handle SIGINT
This commit is contained in:
parent
e8e01e6258
commit
3e4c359bdd
1 changed files with 4 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue