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
|
||||
|
||||
local curcontext="\$curcontext" state state_descr line
|
||||
typeset -A opt_args
|
||||
|
||||
local rc=1
|
||||
|
||||
_arguments -C -S \\
|
||||
|
@ -86,6 +89,7 @@ $vf_str
|
|||
;;
|
||||
|
||||
mfiles)
|
||||
local expl
|
||||
_tags files urls
|
||||
while _tags; do
|
||||
_requested files expl 'media file' _files -g \\
|
||||
|
|
Loading…
Reference in New Issue