about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-10-07 07:43:35 +0000
committerClint Adams <clint@users.sourceforge.net>2008-10-07 07:43:35 +0000
commit26616e1a231da91fd20653946d40660b62499804 (patch)
tree457f9a32d1531ac3ab4b5ffd872ef860ec703f0c
parent38b8cdbcdfa217ad7e358c8d145a58bce08f2251 (diff)
downloadzsh-26616e1a231da91fd20653946d40660b62499804.tar.gz
zsh-26616e1a231da91fd20653946d40660b62499804.tar.xz
zsh-26616e1a231da91fd20653946d40660b62499804.zip
Jörg Sommer: 25821: return 0 if a modules parameter was completed.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Linux/Command/_modutils2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1762d44b4..dd1bb20e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-10-07  Clint Adams  <clint@zsh.org>
 
+	* Jörg Sommer: 25821: Completion/Linux/Command/_modutils: return 0
+	if a modules parameter was completed.
+
 	* Jörg Sommer: 25820: Completion/Linux/Command/_modutils: add the
 	option --field of modinfo.
 
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index 2ba43a722..91dff4bde 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -96,7 +96,7 @@ case "$state" in
       _message -e value 'parameter value'
     else
       _values 'module parameter' \
-        ${(f)^"$(_call_program module_parameter modinfo -F parm "$words[2]" 2>/dev/null)"//:/\=[}\]
+        ${(f)^"$(_call_program module_parameter modinfo -F parm "$words[2]" 2>/dev/null)"//:/\=[}\] && ret=0
     fi
   ;;
 esac