From e3e600608a73af516ed8a1fd375d20191a65b35a Mon Sep 17 00:00:00 2001 From: Phil Runninger Date: Mon, 25 Mar 2019 22:32:07 -0400 Subject: [PATCH] On Windows, do a case-insensitive comparison of paths. (#967) --- lib/nerdtree/path.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/nerdtree/path.vim b/lib/nerdtree/path.vim index b92eb6f..c3af195 100644 --- 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