about summary refs log tree commit diff
path: root/Doc/Zsh/compsys.yo
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-23 12:52:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-23 12:52:39 +0000
commit6fda33d3abd70bd4c219aac0e8c416270f398fef (patch)
treecddd4f18a612f0b235b70f9fceffe8779dade908 /Doc/Zsh/compsys.yo
parent9ef6eed52a5cdba96bb95711eadd71d21bd81388 (diff)
downloadzsh-6fda33d3abd70bd4c219aac0e8c416270f398fef.tar.gz
zsh-6fda33d3abd70bd4c219aac0e8c416270f398fef.tar.xz
zsh-6fda33d3abd70bd4c219aac0e8c416270f398fef.zip
fix
Diffstat (limited to 'Doc/Zsh/compsys.yo')
-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)