summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/Zsh/compsys.yo6
1 files changed, 3 insertions, 3 deletions
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)