Escape too cancels search

This commit is contained in:
Sebastian Gniazdowski 2016-10-24 10:08:20 +02:00
parent 08d09d633e
commit 1e65c840f4

View file

@ -264,6 +264,7 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
# A workaround for Zsh versions like 5.0.2
zle -N _hsmw_cancel_accept
bindkey -M hsmw "^V" _hsmw_cancel_accept
bindkey -M hsmw "^[" _hsmw_cancel_accept
# Trap INT to manually interrupt Zle to work around a bug
trap 'zle && zle .send-break' INT