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:
Martin Grenfell 2008-06-07 00:24:51 +12:00
parent 5685fa7af4
commit c108a19881

View File

@ -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