mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2025-02-16 19:18:24 +00:00
Set no-op trap after leaving recursive-edit –> ensure code is executed
This commit is contained in:
parent
78a7f0cf79
commit
b682066065
1 changed files with 4 additions and 0 deletions
|
@ -286,6 +286,8 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
||||||
trap 'zle && zle .send-break' INT
|
trap 'zle && zle .send-break' INT
|
||||||
|
|
||||||
if zle .recursive-edit -K hsmw; then
|
if zle .recursive-edit -K hsmw; then
|
||||||
|
trap '' INT
|
||||||
|
|
||||||
if [[ "$__hsmw_hcw_index" -gt "0" ]]; then
|
if [[ "$__hsmw_hcw_index" -gt "0" ]]; then
|
||||||
BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}"
|
BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}"
|
||||||
CURSOR="${#BUFFER}"
|
CURSOR="${#BUFFER}"
|
||||||
|
@ -293,6 +295,8 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
||||||
BUFFER=""
|
BUFFER=""
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
trap '' INT
|
||||||
|
|
||||||
BUFFER=""
|
BUFFER=""
|
||||||
fi
|
fi
|
||||||
POSTDISPLAY=""
|
POSTDISPLAY=""
|
||||||
|
|
Loading…
Add table
Reference in a new issue