mirror of
https://github.com/preservim/nerdtree.git
synced 2024-10-18 22:00:21 +03:00
mirror a tree which tab already closed
This commit is contained in:
parent
5782b228e4
commit
cb5ce66398
@ -134,6 +134,13 @@ function! s:Creator.createMirror()
|
|||||||
call add(treeBufNames, nextName)
|
call add(treeBufNames, nextName)
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
for i in range(1, bufnr('$'))
|
||||||
|
let nextName = bufname(i)
|
||||||
|
if bufexists(i) && getbufvar(i, '&filetype') == 'nerdtree' && (!exists("t:NERDTreeBufName") || nextName != t:NERDTreeBufName)
|
||||||
|
call add(treeBufNames, nextName)
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
let treeBufNames = self._uniq(treeBufNames)
|
let treeBufNames = self._uniq(treeBufNames)
|
||||||
|
|
||||||
"map the option names (that the user will be prompted with) to the nerd
|
"map the option names (that the user will be prompted with) to the nerd
|
||||||
|
Loading…
Reference in New Issue
Block a user