mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +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
|
||||
|
||||
if zle .recursive-edit -K hsmw; then
|
||||
trap '' INT
|
||||
|
||||
if [[ "$__hsmw_hcw_index" -gt "0" ]]; then
|
||||
BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}"
|
||||
CURSOR="${#BUFFER}"
|
||||
|
@ -293,6 +295,8 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
|||
BUFFER=""
|
||||
fi
|
||||
else
|
||||
trap '' INT
|
||||
|
||||
BUFFER=""
|
||||
fi
|
||||
POSTDISPLAY=""
|
||||
|
|
Loading…
Reference in a new issue