From 6959054e8d3bdd85b109250e5af19fb890a468fd Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Sun, 22 May 2016 16:33:02 +0200 Subject: [PATCH] Use POSTDISPLAY instead of zle -M --- history-search-multi-word | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/history-search-multi-word b/history-search-multi-word index e9f24f9..01692d4 100644 --- a/history-search-multi-word +++ b/history-search-multi-word @@ -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