From 93c9726c6d96289d6daa59bfb277dff68efa42ba Mon Sep 17 00:00:00 2001 From: toiffel Date: Mon, 13 Jul 2015 03:03:14 +0600 Subject: [PATCH] Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on --- autoload/nerdtree.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/nerdtree.vim b/autoload/nerdtree.vim index d16cd66..37d7d10 100644 --- a/autoload/nerdtree.vim +++ b/autoload/nerdtree.vim @@ -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