From 6e24eed04a2b551f029e990cf622ea096ee36ab6 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 8 Jun 2008 18:30:31 +1200 Subject: [PATCH] use a script lvl variable for NERDTreeSortStarIndex --- plugin/NERD_tree.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 2bed6fa..9b572f6 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -59,7 +59,7 @@ endif "we need to use this number many times for sorting... so we calculate it only "once here -let g:NERDTreeSortStarIndex = index(g:NERDTreeSortOrder, '*') +let s:NERDTreeSortStarIndex = index(g:NERDTreeSortOrder, '*') call s:InitVariable("g:NERDTreeSplitVertical", 1) call s:InitVariable("g:NERDTreeWinPos", 1) @@ -1035,7 +1035,7 @@ function! s:oPath.GetSortOrderIndex() dict endif let i = i + 1 endwhile - return g:NERDTreeSortStarIndex + return s:NERDTreeSortStarIndex endfunction "FUNCTION: oPath.Ignore() {{{3