From 201df0a782b8cf42901e62a36450671076a2e520 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 28 Jun 2008 21:22:29 +1200 Subject: [PATCH] only show bookmark if NERDTreeShowBookmarks is set --- plugin/NERD_tree.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 45c9dde..7a0036e 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2328,7 +2328,9 @@ function! s:RenderView() call setline(line(".")+1, "") call cursor(line(".")+1, col(".")) - call s:RenderBookmarks() + if g:NERDTreeShowBookmarks + call s:RenderBookmarks() + endif "add the 'up a dir' line call setline(line(".")+1, s:tree_up_dir_line)