.znap.compile checks the funcstack, with the intent of determining whether or not to output user visible messages -- they should only be output when called directly from the znap CLI tool.
Unfortunately, this check was written in a way that means that when called from outside of the main znap function (eg, compdump background compilation, auto-compile), no compilation happened.
This change re-orders the checks so that .znap.compile works when called from other parts of znap, like compdump compilation.
Fixes #267
Before submitting your PR (pull request), please
check the following:
[x] There is no other PR (open or closed)
similar to yours. If there is, please first
discuss over there.
.znap.compile
checks thefuncstack
, with the intent of determining whether or not to output user visible messages -- they should only be output when called directly from theznap
CLI tool.Unfortunately, this check was written in a way that means that when called from outside of the main
znap
function (eg, compdump background compilation, auto-compile), no compilation happened.This change re-orders the checks so that
.znap.compile
works when called from other parts of znap, like compdump compilation.Fixes #267
Before submitting your PR (pull request), please check the following:
Fixes #<bug>
orResolves #<issue>
in its body (not subject) for each issue it resolves (if any).