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

fix(ToC): only try to open when still in norg buffer #1549

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

benlubas
Copy link
Contributor

@benlubas benlubas commented Aug 5, 2024

When switching buffers really quickly with auto TOC enabled, we could enter and leave a norg buffer before the scheduled function gets to run, which results in a noisy error message from Neorg Command saying :Neorg toc only works from a norg buffer.

@benlubas benlubas force-pushed the push-ntoykpxoyskx branch from b0ced4b to 3a8d476 Compare August 8, 2024 12:06
@vhyrro vhyrro merged commit 88dbab5 into nvim-neorg:main Aug 8, 2024
5 of 6 checks passed
@benlubas benlubas deleted the push-ntoykpxoyskx branch August 8, 2024 14:08
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.

2 participants