about summary refs log tree commit diff
path: root/Completion/X
diff options
context:
space:
mode:
authorDoug Kearns <dkearns@users.sourceforge.net>2005-06-08 05:33:45 +0000
committerDoug Kearns <dkearns@users.sourceforge.net>2005-06-08 05:33:45 +0000
commit0d8d202ff5491382a7576508d80166f89aac4157 (patch)
tree02ff03a93265d57b7382fdff71164e0057ab5d31 /Completion/X
parent1caf681523605cb29996226e4b7bb41977fc8402 (diff)
downloadzsh-0d8d202ff5491382a7576508d80166f89aac4157.tar.gz
zsh-0d8d202ff5491382a7576508d80166f89aac4157.tar.xz
zsh-0d8d202ff5491382a7576508d80166f89aac4157.zip
21302: make sure expl is declared local in completion functions
Diffstat (limited to 'Completion/X')
-rw-r--r--Completion/X/Command/_mozilla2
-rw-r--r--Completion/X/Command/_mplayer2
-rw-r--r--Completion/X/Command/_netscape2
-rw-r--r--Completion/X/Type/_x_visual2
4 files changed, 5 insertions, 3 deletions
diff --git a/Completion/X/Command/_mozilla b/Completion/X/Command/_mozilla
index f6ade49fc..890aa7b53 100644
--- a/Completion/X/Command/_mozilla
+++ b/Completion/X/Command/_mozilla
@@ -1,6 +1,6 @@
 #compdef mozilla mozilla-firefox mozilla-xremote-client
 
-local curcontext="$curcontext" state line ret=1 suf
+local curcontext="$curcontext" state line expl ret=1 suf
 typeset -A opt_args
 
 local popts="-installer -CreateProfile -P -ProfileWizard -ProfileManager -SelectProfile"
diff --git a/Completion/X/Command/_mplayer b/Completion/X/Command/_mplayer
index 8be53b52e..d7205d1ae 100644
--- a/Completion/X/Command/_mplayer
+++ b/Completion/X/Command/_mplayer
@@ -1,7 +1,7 @@
 #compdef mplayer gmplayer
 
 local suf ret=1 curcontext="$curcontext"
-local -a vals state line
+local -a vals state line expl
 
 _x_arguments -C -s \
   '!-abs:buffer size' \
diff --git a/Completion/X/Command/_netscape b/Completion/X/Command/_netscape
index a6f9ac3fc..e1d02ae90 100644
--- a/Completion/X/Command/_netscape
+++ b/Completion/X/Command/_netscape
@@ -1,6 +1,6 @@
 #compdef netscape
 
-local curcontext="$curcontext" state line ret=1 suf files
+local curcontext="$curcontext" state line expl ret=1 suf files
 typeset -A opt_args
 
 _x_arguments -C \
diff --git a/Completion/X/Type/_x_visual b/Completion/X/Type/_x_visual
index 13b42ca6e..b28208444 100644
--- a/Completion/X/Type/_x_visual
+++ b/Completion/X/Type/_x_visual
@@ -1,5 +1,7 @@
 #autoload
 
+local expl
+
 # with the -b option, include `Best' in the matches
 local best="${argv[(r)-b]:+Best}"
 argv[(i)-b]=()