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

Review of #1122 #1124

Closed
wants to merge 6 commits into from
Closed

Review of #1122 #1124

wants to merge 6 commits into from

Conversation

PhilRunninger
Copy link
Member

Do NOT merge! This PR is only for reporting testing results and an additional change for #1122.

Eugenij-W and others added 6 commits May 13, 2020 03:11
…irectory on drive Path.str() return path with [back]slash)
…rect comparison of paths without transformations
The str() function returns "C:\" on the root folder and "C:\temp" on
non-root folders, one with and one without a trailing backslash. This
inconsistency needs to be handled so the stridx() function will work
correctly.
This commit handles an edge case that can be triggered with these
commands:
    :cd /home/me
    :e /foobar.txt  (an existing file)
    :NERDTreeFind
What happened was the root directory name '/' was being Resolved(), and
the trailing (and only) slash was being removed. The NERDTree was then
created in the current working directory, instead of the root directory.
:NERDTreeFind then wasn't able to find foobar.txt, and printed an error.
@PhilRunninger PhilRunninger deleted the 1122 branch May 22, 2020 13:09
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