mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-17 08:52:47 +08:00
fix previewing of directory nodes
Previously if we used the gi/gs mappings on a dir node/bookmark the cursor would end up in the new window. Now it stays in the current window as expected
This commit is contained in:
parent
7e7e761d7f
commit
aa1e7d642f
|
@ -2074,6 +2074,10 @@ function! s:Opener._openDirectory(node)
|
||||||
call s:initNerdTreeInPlace(a:node.path.str())
|
call s:initNerdTreeInPlace(a:node.path.str())
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if self._stay
|
||||||
|
call self._restoreCursorPos()
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: Opener._previousWindow() {{{3
|
"FUNCTION: Opener._previousWindow() {{{3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user