From 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:20:19 +0000 Subject: zsh-3.1.5-pws-12 --- Completion/Builtins/_unsetopt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Completion/Builtins/_unsetopt') diff --git a/Completion/Builtins/_unsetopt b/Completion/Builtins/_unsetopt index a5c85b1ef..1194e28a7 100644 --- a/Completion/Builtins/_unsetopt +++ b/Completion/Builtins/_unsetopt @@ -1,8 +1,11 @@ #defcomp unsetopt -local nm=$compstate[nmatches] +local nm=$compstate[nmatches] ret=1 compgen -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' \ - -s '$({ unsetopt kshoptionprint; setopt } 2>/dev/null)' + -s '$({ unsetopt kshoptionprint; setopt } 2>/dev/null)' && ret=0 + [[ compstate[nmatches] -eq nm ]] && - compgen -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' -o + compgen -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' -o && ret=0 + +return ret -- cgit 1.4.1