Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on

This commit is contained in:
toiffel 2015-07-13 03:03:14 +06:00
parent 96c07746b4
commit 93c9726c6d

View File

@ -36,9 +36,9 @@ endfunction
"FUNCTION: nerdtree#compareNodesBySortKey(n1, n2) {{{2
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
elseif a:n1.path.getSortKey() > a:n2.path.getSortKey()
elseif a:n1.path.getSortKey() ># a:n2.path.getSortKey()
return 1
else
return 0