You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To assist in resolving your issue, provide as much information as possible, in place of the ellipses (…) below.
Environment:Describe your Vim/NERDTree setup.
Operating System: Archlinux, Linux Opensuse and Window 7
GVim version :version: 8.0 Included patch 1-69
Vim version :version: 8.0 Included patch 1-2
NERDTree version git rev-parse --short HEAD: f554c20
NERDTree settings applied in your vimrc, if any:
let NERDTreeWinPos = "left"
let NERDTreeWinSize = 35
let NERDTreeIgnore = ['.job$', '^CVS$', '.orig', '.log$']
let g:NERDTreeDirArrows = 0
let g:NERDTreeStatusline = "%f"
let g:NERDTreeDirArrowExpandable = ''
let g:NERDTreeDirArrowCollapsible = ''
Process:List the steps that will recreate the issue.
Open several buffers from the tree
Delete one file from the tree using md
NERDTree ask for confirmation to delete the file and delete the associated buffer if open
confirm delete file and buffer with 'y'
Current Result:Describe what you you currently experience from this process.
Buffer is actually deleted but it remains open as 'No Name'
To completely remove residue buffer one should call ':Bdelete'
/!\ I tested (re) this several time before submitting the issue and notice that sometime:
residue buffer is replaced with newly open file
If deleted buffer was the first one to be opened it will be removed completely without leaving any residue buffer
This is occurring only if the file to be deleted is the currently active buffer
Optional
Screenshot(s):
Possible Fix:(Have you poked around in the code?)
The setting below doesn't affect the results.
"Automatically delete the buffer after deleting or renaming a fileif!exists("g:NERDTreeAutoDeleteBuffer")
letg:NERDTreeAutoDeleteBuffer=0endif
There is one function to be reviewed
function!s:promptToDelBuffer(bufnum, msg)
I think the issue will be solved by changin the line below in s:promptToDelBuffer:
…ervim#755 (closespreservim#755) preservim#756
Go to the next buffer in buffer list if at least one extra buffer is listed. Otherwise open a new empty buffer.
mboughaba
added a commit
to mboughaba/nerdtree
that referenced
this issue
Nov 1, 2017
…ervim#755 (closespreservim#755) preservim#756
Check vim version before getting listed buffer count.
Old behavior is kept for v 7.0 and 7.1.
starting from 7.2 new behavior will be applicable. Switch to open buffer if any instead of opening a new one.
mboughaba
added a commit
to mboughaba/nerdtree
that referenced
this issue
Nov 1, 2017
To assist in resolving your issue, provide as much information as possible, in place of the ellipses (
…
) below.Environment: Describe your Vim/NERDTree setup.
Process: List the steps that will recreate the issue.
Current Result: Describe what you you currently experience from this process.
To completely remove residue buffer one should call ':Bdelete'
/!\ I tested (re) this several time before submitting the issue and notice that sometime:
Optional
Screenshot(s):
Possible Fix: (Have you poked around in the code?)
The setting below doesn't affect the results.
There is one function to be reviewed
I think the issue will be solved by changin the line below in s:promptToDelBuffer:
The text was updated successfully, but these errors were encountered: