about summary refs log tree commit diff
path: root/Completion/Linux
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/Linux
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/Linux')
-rw-r--r--Completion/Linux/Command/_modutils1
1 files changed, 1 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index 5aa4c9cc7..9a37fcae1 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -119,6 +119,7 @@ _modutils() {
 	    while _tags; do
 		_requested files expl "module file"  _files -g '*.ko(-.)' && ret=0
 		_requested modules expl module compadd -a modules && ret=0
+		(( ret )) || break
 	    done
 	    ;;