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.
This commit is contained in:
c_14 2014-08-13 22:07:02 +02:00 committed by Alessandro Ghedini
parent 69a160f187
commit fd98863b1f
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ $vf_str
done
;;
esac
return 1
EOS
print $tmpl;