Merge pull request #466 from toiffel/master

Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on
This commit is contained in:
Martin Grenfell 2015-07-13 09:30:58 +01:00
commit 86e2e40af1

View File

@ -36,9 +36,9 @@ endfunction
"FUNCTION: nerdtree#compareNodesBySortKey(n1, n2) {{{2 "FUNCTION: nerdtree#compareNodesBySortKey(n1, n2) {{{2
function! nerdtree#compareNodesBySortKey(n1, n2) function! nerdtree#compareNodesBySortKey(n1, n2)
if a:n1.path.getSortKey() < a:n2.path.getSortKey() if a:n1.path.getSortKey() <# a:n2.path.getSortKey()
return -1 return -1
elseif a:n1.path.getSortKey() > a:n2.path.getSortKey() elseif a:n1.path.getSortKey() ># a:n2.path.getSortKey()
return 1 return 1
else else
return 0 return 0