Ctrl-C doesn't accept any search result

This commit is contained in:
Sebastian Gniazdowski 2016-05-22 15:53:59 +02:00
parent 8d0e727200
commit f2f3493056

View file

@ -125,8 +125,9 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
zle -N backward-delete-char _zhcw_backward_delete_char
zle -N delete-char _zhcw_delete_char
zle recursive-edit -K zhcw
BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}"
if zle recursive-edit -K zhcw; then
BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}"
fi
zle -M ""
zle -A saved-self-insert self-insert