commit c108a19881ee369bc1afafb4351819304c9cd9e2
parent 5685fa7af47fe182d2e55e112b510cdecb487d0a
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Sat, 7 Jun 2008 00:24:51 +1200
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
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -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