From 3a437b402a9e310a69ea418281ee7aa8c3ffc075 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 9 Jun 2008 12:37:20 +1200 Subject: [PATCH] dont call RenderView() inside ReadMarks() --- plugin/NERD_tree.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index cb7c992..25e6b22 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1459,7 +1459,6 @@ function! s:ReadMarks() let path = substitute(i, '^\w.\{-} \(.*\)$', '\1', '') let marks[key] = s:oPath.New(path) endfor - call s:RenderView() endif endfunction " Function: s:TreeExistsForTab() {{{2 @@ -2520,7 +2519,7 @@ function! s:BindMappings() command! -buffer -complete=customlist,s:FindMarks -nargs=+ ClearMarks call ClearMarks('') command! -buffer -complete=customlist,s:FindMarks -nargs=+ MarkToRoot call MarkToRoot('') command! -buffer -nargs=0 ClearAllMarks call ClearAllMarks() call RenderView() - command! -buffer -nargs=0 ReadMarks call ReadMarks() + command! -buffer -nargs=0 ReadMarks call ReadMarks() call RenderView() command! -buffer -nargs=0 WriteMarks call WriteMarks() endfunction