Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on
This commit is contained in:
parent
96c07746b4
commit
93c9726c6d
@ -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