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

This commit is contained in:
Phil Runninger 2019-03-25 22:32:07 -04:00 committed by GitHub
parent 0efbdfbc5a
commit e3e600608a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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