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

Enable root refresh on "vim ." a different way than #999. #1001

Merged
merged 2 commits into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/nerdtree/creator.vim
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ function! s:Creator.createWindowTree(dir)

"we need a unique name for each window tree buffer to ensure they are
"all independent
let t:NERDTreeBufName = self._nextBufferName()
exec g:NERDTreeCreatePrefix . " edit " . t:NERDTreeBufName
exec g:NERDTreeCreatePrefix . " edit " . self._nextBufferName()

call self._createNERDTree(path, "window")
let b:NERDTree._previousBuf = bufnr(previousBuf)
Expand Down
2 changes: 1 addition & 1 deletion lib/nerdtree/nerdtree.vim
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ endfunction

"FUNCTION: s:NERDTree.IsOpen() {{{1
function! s:NERDTree.IsOpen()
return s:NERDTree.GetWinNum() != -1
return s:NERDTree.GetWinNum() != -1 || bufname('%') =~# '^' . g:NERDTreeCreator.BufNamePrefix() . '\d\+$'
endfunction

"FUNCTION: s:NERDTree.isTabTree() {{{1
Expand Down