mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 10:03:32 +00:00
TOOLS/zsh.pl: protect global environment
This commit is contained in:
parent
c7e67d008a
commit
b36ed6d9f9
@ -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 \\
|
||||
|
Loading…
Reference in New Issue
Block a user