mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05: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:
@@ -2827,6 +2827,7 @@ function! s:OpenMark(name)
|
|||||||
|
|
||||||
let targetNode = t:NERDTreeRoot.FindNode(mark)
|
let targetNode = t:NERDTreeRoot.FindNode(mark)
|
||||||
call s:PutCursorOnNode(targetNode, 0, 1)
|
call s:PutCursorOnNode(targetNode, 0, 1)
|
||||||
|
redraw!
|
||||||
if !targetNode.path.isDirectory
|
if !targetNode.path.isDirectory
|
||||||
call s:OpenFileNode(targetNode)
|
call s:OpenFileNode(targetNode)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user