move b:NERDTreePreviousBuf into NERDTree class

This commit is contained in:
Martin Grenfell
2015-11-14 13:10:08 +00:00
parent 5c20274761
commit 4d8a0c90cb
3 changed files with 7 additions and 3 deletions

View File

@@ -103,8 +103,8 @@ function! s:Creator.createWindowTree(dir)
"all independent
exec "silent edit " . self._nextBufferName()
let b:NERDTreePreviousBuf = bufnr(previousBuf)
call self._createNERDTree(path, "window")
let b:NERDTree._previousBuf = bufnr(previousBuf)
call self._setCommonBufOptions()
call b:NERDTree.render()