Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 3/4] Declare val_args as local array



As requested in the documention of _values in zshcompsys(1), declare the
array as local.
---
 Completion/Linux/Command/_modutils |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index 91dff4b..faab852 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -95,6 +95,8 @@ case "$state" in
     if compset -P '*='; then
       _message -e value 'parameter value'
     else
+      typeset -A val_args
+
       _values 'module parameter' \
         ${(f)^"$(_call_program module_parameter modinfo -F parm "$words[2]" 2>/dev/null)"//:/\=[}\] && ret=0
     fi
-- 
1.6.0.1



Messages sorted by: Reverse Date, Date, Thread, Author