Merge pull request #453 from WoLpH/patch-1

Fixed incompatibility with older Vim versions
This commit is contained in:
Martin Grenfell 2015-06-17 10:23:11 +01:00
commit 96c07746b4

View File

@ -2,8 +2,11 @@
"once here
let s:NERDTreeSortStarIndex = index(g:NERDTreeSortOrder, '*')
" used in formating sortKey, e.g. '%04d'
let s:sortKeyFormat = "%0" . float2nr(ceil(log10(len(g:NERDTreeSortOrder)))) . "d"
if exists("log10")
let s:sortKeyFormat = "%0" . float2nr(ceil(log10(len(g:NERDTreeSortOrder)))) . "d"
else
let s:sortKeyFormat = "%04d"
endif
"CLASS: Path
"============================================================