summary refs log tree commit diff
path: root/Completion/Unix/Command/_make
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-11-02 21:36:55 +0100
committerOliver Kiddle <opk@zsh.org>2017-11-02 21:36:55 +0100
commit0ebf336489f288549ce11bc78bbb2289b604959b (patch)
tree372c38ce4520048cb05efda70e7a2b0f99d06504 /Completion/Unix/Command/_make
parentbf04ffb54286c44deef6e4ceb6445d6af30897f9 (diff)
downloadzsh-0ebf336489f288549ce11bc78bbb2289b604959b.tar.gz
zsh-0ebf336489f288549ce11bc78bbb2289b604959b.tar.xz
zsh-0ebf336489f288549ce11bc78bbb2289b604959b.zip
41971: correctly break out of certain tag loops when there are matches
Diffstat (limited to 'Completion/Unix/Command/_make')
-rw-r--r--Completion/Unix/Command/_make11
1 files changed, 3 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index a2ee9ecac..890ad1c83 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -287,14 +287,9 @@ _make() {
       compset -P 1 '*='
       _value "$@" && ret=0
     else
-      _tags targets variables
-      while _tags
-      do
-        _requested targets expl 'make targets' \
-          compadd -Q -- $TARGETS && ret=0
-        _requested variables expl 'make variables' \
-          compadd -S '=' -F keys -- ${(k)VARIABLES} && ret=0
-      done
+      _alternative \
+        'targets:make target:compadd -Q -a TARGETS' \
+        'variables:make variable:compadd -S = -F keys -k VARIABLES' && ret=0
     fi
   esac