mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-23 08:46:52 +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())
|
||||
endif
|
||||
endif
|
||||
|
||||
if self._stay
|
||||
call self._restoreCursorPos()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
"FUNCTION: Opener._previousWindow() {{{3
|
||||
|
|
Loading…
Reference in New Issue
Block a user