use a script lvl variable for NERDTreeSortStarIndex
This commit is contained in:
parent
82c1fece9f
commit
6e24eed04a
@ -59,7 +59,7 @@ endif
|
|||||||
|
|
||||||
"we need to use this number many times for sorting... so we calculate it only
|
"we need to use this number many times for sorting... so we calculate it only
|
||||||
"once here
|
"once here
|
||||||
let g:NERDTreeSortStarIndex = index(g:NERDTreeSortOrder, '*')
|
let s:NERDTreeSortStarIndex = index(g:NERDTreeSortOrder, '*')
|
||||||
|
|
||||||
call s:InitVariable("g:NERDTreeSplitVertical", 1)
|
call s:InitVariable("g:NERDTreeSplitVertical", 1)
|
||||||
call s:InitVariable("g:NERDTreeWinPos", 1)
|
call s:InitVariable("g:NERDTreeWinPos", 1)
|
||||||
@ -1035,7 +1035,7 @@ function! s:oPath.GetSortOrderIndex() dict
|
|||||||
endif
|
endif
|
||||||
let i = i + 1
|
let i = i + 1
|
||||||
endwhile
|
endwhile
|
||||||
return g:NERDTreeSortStarIndex
|
return s:NERDTreeSortStarIndex
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: oPath.Ignore() {{{3
|
"FUNCTION: oPath.Ignore() {{{3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user