Skip to content
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

Update Templater.ts #1369

Merged
merged 1 commit into from
May 8, 2024
Merged

Update Templater.ts #1369

merged 1 commit into from
May 8, 2024

Conversation

johnfromoptus
Copy link
Contributor

included check for null active editor before appending blank string. See docs: https://docs.obsidian.md/Reference/TypeScript+API/Workspace/activeEditor

This mitigates edge cases where blank string is appended during transition between active editors. Fixes #1309

included check for null active editor before appending blank string. See docs:
https://docs.obsidian.md/Reference/TypeScript+API/Workspace/activeEditor
Copy link
Collaborator

@Zachatoo Zachatoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests passed and looks good on my end, thanks for this fix!

@Zachatoo Zachatoo merged commit b6dd0b1 into SilentVoid13:master May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected behavior when using hooks.on_all_templates_executed on a blank file
2 participants