Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 3/4] Declare val_args as local array
- X-seq: zsh-workers 25822
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [PATCH 3/4] Declare val_args as local array
- Date: Tue, 7 Oct 2008 00:58:29 +0200
- Cc: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1223336527; i=@xxxxxxxxxxxx; bh=tXNcfkFwkTupzqNmwbQaUaTjo3+/5wC77 92lxGtJQoM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To: References; b=CAyESWzEOHWAo7Q7k0/BMks+AHy9GrPSZvr/TiY8Ac7uuIvopEIG 2Y0RZw5BMBLrfroHXmC9dGOfwF+08kfEuVLoerEjoCKliJk5F0tn9TDK/q9Rg+k+1pj 9Swgwo5eOu0EwV6S16HttDjMK2efMccTUP2mwyFWWA2Morh3WmyU=
- In-reply-to: <1223333910-2641-2-git-send-email-joerg@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1223333910-2641-1-git-send-email-joerg@xxxxxxxxxxxx> <1223333910-2641-2-git-send-email-joerg@xxxxxxxxxxxx>
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