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

Use a better check for existence of the NERDTree buffer. #814

Merged
merged 2 commits into from
Mar 6, 2018
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
47 changes: 20 additions & 27 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
_To assist in resolving your issue, provide as much information as possible, in place of the ellipses (`…`) below._
<!--- To assist in resolving your issue, provide as much information as possible. -->

---
**Environment:** _Describe your Vim/NERDTree setup._
### Environment
<!--- Describe your Vim/NERDTree setup. -->

>* Operating System: …
>* Vim version `:version`: …
>* NERDTree version `git rev-parse --short HEAD`: …
>* NERDTree settings applied in your vimrc, if any:
>
> ```
> …
> ```
* Operating System:
* Vim version `:version`:
* NERDTree version `git rev-parse --short HEAD`:
* NERDTree settings applied in your vimrc, if any:
```vim
```

**Process:** _List the steps that will recreate the issue._
### Process
<!--- List the steps that will recreate the issue. -->

>1.
1.

**Current Result:** _Describe what you you currently experience from this process._
### Current Result
<!--- Describe what you you currently experience from this process. -->

>…
### Expected Result
<!--- Describe what you would have expected from this process. -->

**Expected Result:** _Describe what you would expect to have resulted from this process._
## Optional

>…
### Screenshot(s)

---
**Optional**

**Screenshot(s):**

>…

**Possible Fix:** _(Have you poked around in the code?)_

>…
### Possible Fix
<!--- If you have explored the code, share what you've found. -->

2 changes: 1 addition & 1 deletion lib/nerdtree/creator.vim
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function! s:Creator._createTreeWin()
let splitLocation = g:NERDTreeWinPos ==# "left" ? "topleft " : "botright "
let splitSize = g:NERDTreeWinSize

if !exists('t:NERDTreeBufName')
if !g:NERDTree.ExistsForTab()
let t:NERDTreeBufName = self._nextBufferName()
silent! exec splitLocation . 'vertical ' . splitSize . ' new'
silent! exec "edit " . t:NERDTreeBufName
Expand Down