romkatv/zsh-defer

Using $0 from autoload function

psprint opened this issue · 1 comments

I'm not currently at a computer, so I cannot check, however shouldn't the source line:

if (( ! $+_defer_tasks )); then
    source ${0:A:h}/zsh-defer.plugin.zsh
fi

use something like $funcfiletrace or some parameter like $ZSH_DEFER_DIR?

Thanks for the report! Fixed.