From d718f1098c563e231e7c1ca3f147d4eda3fbeded Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 7 Jun 2008 18:06:32 +1200 Subject: [PATCH] put the cursor on the new root after :MarkToRoot --- plugin/NERD_tree.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index def196f..dea18af 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2839,6 +2839,7 @@ function! s:MarkToRoot(name) let targetNode = s:GetNodeForMark(a:name, 1) call targetNode.MakeRoot() call s:RenderView() + call s:PutCursorOnNode(targetNode, 0, 0) endfunction " FUNCTION: s:OpenEntrySplit() {{{2 " Opens the currently selected file from the explorer in a