Skip to content

fix(files): set tree root correctly when revealing in split #178

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

Closed
wants to merge 1 commit into from

Conversation

marcuscaisey
Copy link
Contributor

@marcuscaisey marcuscaisey commented Mar 12, 2022

When using :NeoTreeRevealInSplit, the tree's root never changes from the working directory. This PR fixes that. I would have thought that utils.split_path(path_to_reveal)[1] would get the first out of the two things returned by split_path (like when you return tuples in Python), but it's actually indexing the first string returned instead (which returns nil).

@cseickel
Copy link
Contributor

I would have thought that utils.split_path(path_to_reveal)[1] would get the first out of the two things returned by split_path (like when you return tuples in Python), but it's actually indexing the first string returned instead (which returns nil).

Huh, that's just nonsense, but I should have known that!

The issue with this PR is that it is targeting v1.x and PRs should go to main. Can you recreate it? I tried ti change it but the protection does not update when I do that.

@cseickel cseickel closed this Mar 12, 2022
@marcuscaisey
Copy link
Contributor Author

The issue with this PR is that it is targeting v1.x and PRs should go to main. Can you recreate it? I tried ti change it but the protection does not update when I do that.

aha! yeah will do, thanks

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