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: hijack directory "BufEnter", "BufNewFile" events are nested #3044

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

phanen
Copy link
Contributor

@phanen phanen commented Jan 6, 2025

I have some autocmds on DirChanged to record my directory history.

Currently, with hijack_directories enabled, gf or :e /some/dir will jump to directory without triggering the DirChanged events.

@phanen phanen changed the title e fix: trigger DirChanged when open directory Jan 10, 2025
Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

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

Good catch.

This has some potential for unforseen breakages or user issues. Please watch https://github.com/nvim-tree/nvim-tree.lua/issues in case a user reports an issue so that we can fix it fast.

@alex-courtis alex-courtis changed the title fix: trigger DirChanged when open directory fix: hijack directory "BufEnter", "BufNewFile" events are nested Jan 13, 2025
@alex-courtis alex-courtis merged commit 39bc630 into nvim-tree:master Jan 13, 2025
5 checks passed
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