Extract a common line to the top of a function
This commit is contained in:
parent
26168324fc
commit
3cb90cb18d
@ -257,11 +257,11 @@ endfunction
|
|||||||
|
|
||||||
" FUNCTION: Opener._openDirectory(node) {{{1
|
" FUNCTION: Opener._openDirectory(node) {{{1
|
||||||
function! s:Opener._openDirectory(node)
|
function! s:Opener._openDirectory(node)
|
||||||
|
call self._gotoTargetWin()
|
||||||
|
|
||||||
if self._nerdtree.isWinTree()
|
if self._nerdtree.isWinTree()
|
||||||
call self._gotoTargetWin()
|
|
||||||
call g:NERDTreeCreator.CreateWindowTree(a:node.path.str())
|
call g:NERDTreeCreator.CreateWindowTree(a:node.path.str())
|
||||||
else
|
else
|
||||||
call self._gotoTargetWin()
|
|
||||||
if empty(self._where)
|
if empty(self._where)
|
||||||
call b:NERDTree.changeRoot(a:node)
|
call b:NERDTree.changeRoot(a:node)
|
||||||
elseif self._where == 't'
|
elseif self._where == 't'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user