mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 14:38:52 +08:00
add a redraw! in s:OpenMark()
if we were opening a mark (with :OpenMark) that was scrolled off the screen, the tree window wasnt getting scrolled to the node
This commit is contained in:
parent
5685fa7af4
commit
c108a19881
|
@ -2827,6 +2827,7 @@ function! s:OpenMark(name)
|
|||
|
||||
let targetNode = t:NERDTreeRoot.FindNode(mark)
|
||||
call s:PutCursorOnNode(targetNode, 0, 1)
|
||||
redraw!
|
||||
if !targetNode.path.isDirectory
|
||||
call s:OpenFileNode(targetNode)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user