mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-25 04:40:21 +00:00
Missing deinitialization of page up / page down widgets
This commit is contained in:
parent
0b9e3fc153
commit
8e04160835
1 changed files with 7 additions and 0 deletions
|
@ -217,6 +217,9 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
|||
zle -A "$up_widget" saved-"$up_widget"
|
||||
zle -N "$down_widget" _hsmw_simulate_widget
|
||||
zle -N "$up_widget" _hsmw_simulate_widget
|
||||
|
||||
zle -A "$pdown_widget" saved-"$pdown_widget"
|
||||
zle -A "$pup_widget" saved-"$pup_widget"
|
||||
zle -N "$pdown_widget" _hsmw_simulate_widget
|
||||
zle -N "$pup_widget" _hsmw_simulate_widget
|
||||
|
||||
|
@ -239,6 +242,10 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
|||
zle -A saved-"$up_widget" "$up_widget"
|
||||
zle -D saved-"$down_widget" saved-"$up_widget"
|
||||
|
||||
zle -A saved-"$pdown_widget" "$pdown_widget"
|
||||
zle -A saved-"$pup_widget" "$pup_widget"
|
||||
zle -D saved-"$pdown_widget" saved-"$pup_widget"
|
||||
|
||||
# Full reinitialisation at next call
|
||||
__hsmw_hcw_call_count="0"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue