nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit e3e600608a73af516ed8a1fd375d20191a65b35a
parent 0efbdfbc5a1a312d3877c46be6afb7bee55ba2f6
Author: Phil Runninger <PhilRunninger@users.noreply.github.com>
Date:   Mon, 25 Mar 2019 22:32:07 -0400

On Windows, do a case-insensitive comparison of paths. (#967)


Diffstat:
Mlib/nerdtree/path.vim | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/nerdtree/path.vim b/lib/nerdtree/path.vim
@@ -564,7 +564,11 @@ endfunction
 " Args:
 " path: the other path obj to compare this with
 function! s:Path.equals(path)
-    return self.str() ==# a:path.str()
+    if nerdtree#runningWindows()
+        return self.str() ==? a:path.str()
+    else
+        return self.str() ==# a:path.str()
+    endif
 endfunction
 
 " FUNCTION: Path.New(pathStr) {{{1