-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] filter prefixes don't properly set currentTiddler, I think #8178
Comments
It appears to still be there. I take it then that this is indeed a problem to others? |
This is most definitely a bug. Note that with #7906 applied the following works while it doesn't in the current stable release:
The issue seems to crop up when a function invokes another function, unfortunately I don't have the opportunity to debug this at present. This will fail:
|
Thanks @flibbles much appreciated – this seems to be an area that has been fertile in surfacing bugs... |
Describe the bug
Filter prefixes are turning out to be something I use often, not so much because they're elegant, but because they're able to set variables in the middle of a filter expressions, which can be crucial for some operations.
But I'm noticing strange behavior. While a filter run may set currentTiddler within its own run, it doesn't set it within functions called within that run, or anything within that run really.
Is that expected behavior that currentTiddler is only set superficially?
Expected behavior
When I would have thought it'd produce:
To Reproduce
The text was updated successfully, but these errors were encountered: