Skip to content

fix(#2969): After a rename, the node loses selection #2974

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

opsidjflksdf
Copy link
Contributor

@opsidjflksdf opsidjflksdf commented Oct 27, 2024

Use the full path, as used in rename(), for the subsequent call to find_file(), in order to correctly re-select the renamed item.

Closes: #2969

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.

Works beautifully, many thanks for your contribution!

@alex-courtis alex-courtis merged commit 1403933 into nvim-tree:master Oct 27, 2024
5 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After a rename, the node loses selection
3 participants