mirror of https://github.com/mpv-player/mpv
TOOLS/zsh.pl: protect global environment
This commit is contained in:
parent
f935838b2d
commit
aeb64723fd
|
@ -42,6 +42,9 @@ my $tmpl = <<"EOS";
|
||||||
|
|
||||||
# mpv zsh completion
|
# mpv zsh completion
|
||||||
|
|
||||||
|
local curcontext="\$curcontext" state state_descr line
|
||||||
|
typeset -A opt_args
|
||||||
|
|
||||||
local rc=1
|
local rc=1
|
||||||
|
|
||||||
_arguments -C -S \\
|
_arguments -C -S \\
|
||||||
|
@ -86,6 +89,7 @@ $vf_str
|
||||||
;;
|
;;
|
||||||
|
|
||||||
mfiles)
|
mfiles)
|
||||||
|
local expl
|
||||||
_tags files urls
|
_tags files urls
|
||||||
while _tags; do
|
while _tags; do
|
||||||
_requested files expl 'media file' _files -g \\
|
_requested files expl 'media file' _files -g \\
|
||||||
|
|
Loading…
Reference in New Issue