diff options
author | c_14 <git@c-14.de> | 2014-08-13 22:07:02 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-08-13 22:57:59 +0200 |
commit | fd98863b1fb69872741106e0ae2e2c4f078bc1c0 (patch) | |
tree | a0a7de4fb85ea679b92564f023b9b78b5ed3cb03 /TOOLS/zsh.pl | |
parent | 69a160f187484400e3e96ef0a1e956a328135907 (diff) | |
download | mpv-fd98863b1fb69872741106e0ae2e2c4f078bc1c0.tar.bz2 mpv-fd98863b1fb69872741106e0ae2e2c4f078bc1c0.tar.xz |
TOOLS/zsh.pl: properly return non-zero when no matches are found
Returning a non-zero value signals to the zsh completion system that no matches
were added by the script so that it can try the user-defined matchers (e.g.
those defined with matcher-list).
Fixes #1008.
Diffstat (limited to 'TOOLS/zsh.pl')
-rwxr-xr-x | TOOLS/zsh.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl index 15c181f5f1..0842bde7e9 100755 --- a/TOOLS/zsh.pl +++ b/TOOLS/zsh.pl @@ -98,6 +98,7 @@ $vf_str done ;; esac +return 1 EOS print $tmpl; |