Fix deferred compdef between sourcing antigen and antigen apply
Using some obscure Zsh syntax, check https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion-Flags for documentation about it.
Fixes #736
This seems to only fix the no/stale cache case, when the cache is enabled, there is no compdef between sourcing antigen and apply, during applying the cache and after it is set to a no-op compdef and only set to the real compdef after the delayed compinit runs on the first prompt.
Modified so it also fixes the caching case.
Can this be reviewed and unblocked for merge please. Impacted from https://github.com/zsh-users/antigen/issues/736
Sadly this project seems unmaintained for quite some time and the original maintainers haven't appointed anyone new to take over.
If you want to manually patch your local antigen install: antigen-deferred-compdef-fix.patch.tar.gz
patch -p2 -i antigen-deferred-compdef-fix.patch
Thank you for your fix @segevfiner! It's a pity this project no longer seems maintained.