1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-26 17:43:33 +00:00

TOOLS/zsh.pl: protect global environment

This commit is contained in:
Philip Sequeira 2014-08-15 15:22:44 -04:00 committed by Alessandro Ghedini
parent c7e67d008a
commit b36ed6d9f9

View File

@ -72,6 +72,9 @@ my $tmpl = <<"EOS";
# mpv zsh completion
local curcontext="\$curcontext" state state_descr line
typeset -A opt_args
local rc=1
_arguments -C -S \\
@ -120,6 +123,7 @@ $profile_comp
;;
mfiles)
local expl
_tags files urls
while _tags; do
_requested files expl 'media file' _files -g \\