mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 14:38:52 +08:00
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)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user