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

NERDTreeCWD and autochdir do not cooperate #855

Closed
segeljakt opened this issue Jun 20, 2018 · 1 comment
Closed

NERDTreeCWD and autochdir do not cooperate #855

segeljakt opened this issue Jun 20, 2018 · 1 comment
Assignees

Comments

@segeljakt
Copy link

Not sure if this is a bug or not, NERDTreeCWD appears to change directory to the :pwd of the NERDTree's buffer and not to the current buffer's when using autochdir.

Environment

  • OS: macOS High Sierra
  • Editor: MacVim
  • Version: 8.1
  • NERDTree version: d6032c8

Process

  1. mvim ~/
  2. :set autochdir
  3. :cd ~/test/
  4. :NERDTreeCWD

Current Result

NERDTree's root is the ~/.

Expected Result

NERDTree's root should be the ~/test/.

It works when changing the second step (2.) to :set noautochdir.

@PhilRunninger
Copy link
Member

PhilRunninger commented Aug 22, 2018

I tracked this error down to this line in creator.vim. For some reason it changes the CWD when 'autochdir' is turned on, but... only when it's run as part of the :NERDTreeCWD command. Strangely, executing the command :topleft vertical 42 new manually has no effect on the CWD.

@PhilRunninger PhilRunninger self-assigned this Aug 22, 2018
@PhilRunninger PhilRunninger added the PR Under Review Coding is finished, and a pull request has been created and is being reviewed. label Aug 22, 2018
@PhilRunninger PhilRunninger removed the PR Under Review Coding is finished, and a pull request has been created and is being reviewed. label Sep 10, 2018
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

No branches or pull requests

2 participants