Merge pull request #466 from toiffel/master
Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on
This commit is contained in:
commit
86e2e40af1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user