From c108a19881ee369bc1afafb4351819304c9cd9e2 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 7 Jun 2008 00:24:51 +1200 Subject: [PATCH] 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 --- plugin/NERD_tree.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index ce3b150..f3fb54f 100644 --- 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