From 36b2667e6f7734597f987ee1e6189a6f93200b03 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 7 Dec 1999 16:25:53 +0000 Subject: zsh-workers/8932 --- Functions/Zle/incremental-complete-word | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Functions') diff --git a/Functions/Zle/incremental-complete-word b/Functions/Zle/incremental-complete-word index 61af5d236..657adf3f2 100644 --- a/Functions/Zle/incremental-complete-word +++ b/Functions/Zle/incremental-complete-word @@ -16,7 +16,7 @@ incremental-complete-word() { #emulate -L zsh unsetopt autolist menucomplete automenu # doesn't work well - local key lbuf="$LBUFFER" rbuf="$RBUFFER" pmpt word + local key lbuf="$LBUFFER" rbuf="$RBUFFER" pmpt pstr word local lastl lastr wid twid num alt post toolong local curcontext="${curcontext}:incremental" stop brk @@ -51,7 +51,9 @@ incremental-complete-word() { word="${_lastcomp[unambiguous]}" state='' fi - zle -R "${${${${${${pmpt//\\%u/$word}//\\%s/$state}//\\%c/${_lastcomp[completer][2,-1]}}//\\%n/$num}//\\%a/$alt}//\\%l/$toolong}" + compfmt pstr "$pmpt" "u:${word}" "s:$state" "n:$num" "a:$alt" \ + "l:$toolong" "c:${_lastcomp[completer][2,-1]}" + zle -R "$pstr" read -k key while [[ '#key' -ne '#\\r' && '#key' -ne '#\\n' && @@ -97,7 +99,9 @@ incremental-complete-word() { word="${_lastcomp[unambiguous]}" state='' fi - zle -R "${${${${${${pmpt//\\%u/$word}//\\%s/$state}//\\%c/${_lastcomp[completer][2,-1]}}//\\%n/$num}//\\%a/$alt}//\\%l/$toolong}" + compfmt pstr "$pmpt" "u:${word}" "s:$state" "n:$num" "a:$alt" \ + "l:$toolong" "c:${_lastcomp[completer][2,-1]}" + zle -R "$pstr" read -k key done -- cgit 1.4.1