mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-24 20:33:04 +00:00
Use POSTDISPLAY instead of zle -M
This commit is contained in:
parent
b4d189af3f
commit
6959054e8d
1 changed files with 2 additions and 5 deletions
|
@ -73,10 +73,7 @@ _zhcw_main() {
|
|||
entry[1]='>'
|
||||
disp_list[on_page_idx]="$entry"
|
||||
|
||||
zle -M -- \
|
||||
"Searching for '$BUFFER'. "\
|
||||
"Element #$__hsmw_hcw_index of $max_index"$'\n'"${(F)disp_list}"
|
||||
|
||||
POSTDISPLAY=$'\n'"Searching for: $BUFFER"$'\n'"Element #$__hsmw_hcw_index of $max_index"$'\n'"${(F)disp_list}"
|
||||
}
|
||||
|
||||
_zhcw_self_insert() {
|
||||
|
@ -129,7 +126,7 @@ if [ "$__hsmw_hcw_call_count" -eq "1" ]; then
|
|||
BUFFER="${__hsmw_hcw_found[__hsmw_hcw_index]}"
|
||||
CURSOR="${#BUFFER}"
|
||||
fi
|
||||
zle -M ""
|
||||
POSTDISPLAY=""
|
||||
|
||||
zle -A saved-self-insert self-insert
|
||||
zle -A saved-backward-delete-char backward-delete-char
|
||||
|
|
Loading…
Reference in a new issue