From 6fda33d3abd70bd4c219aac0e8c416270f398fef Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 23 Mar 2001 12:52:39 +0000 Subject: fix --- Doc/Zsh/compsys.yo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Doc/Zsh') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 3472beb0e..81700762a 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2307,11 +2307,11 @@ completers are only used when completion is attempted a second time on the same string, e.g.: example(zstyle ':completion:*' completer ' - if [[ $_last_try = "$HISTNO$BUFFER$CURSOR" ]]; then + if [[ $_last_try != "$HISTNO$BUFFER$CURSOR" ]]; then + _last_try="$HISTNO$BUFFER$CURSOR" reply=(_complete _match _prefix) else - _last_try="$HISTNO$BUFFER$CURSOR" - reply=( _ignored _correct _approximate) + reply=(_ignored _correct _approximate) fi') This uses the tt(HISTNO) parameter and the tt(BUFFER) and tt(CURSOR) -- cgit 1.4.1