From 0d8d202ff5491382a7576508d80166f89aac4157 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 8 Jun 2005 05:33:45 +0000 Subject: 21302: make sure expl is declared local in completion functions --- Completion/X/Command/_mozilla | 2 +- Completion/X/Command/_mplayer | 2 +- Completion/X/Command/_netscape | 2 +- Completion/X/Type/_x_visual | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'Completion/X') 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]=() -- cgit 1.4.1