From 10293f60d70a0aa7850fec4d613e2810735c3123 Mon Sep 17 00:00:00 2001 From: Ivan Tishchenko Date: Tue, 3 Feb 2015 13:34:07 +0400 Subject: [PATCH] Use case insensitive path comparison for vimwiki#path#relpath() --- autoload/vimwiki/path.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/path.vim b/autoload/vimwiki/path.vim index 67b563f..417d696 100644 --- a/autoload/vimwiki/path.vim +++ b/autoload/vimwiki/path.vim @@ -80,7 +80,7 @@ function! vimwiki#path#relpath(dir, file) "{{{ let result = [] let dir = split(a:dir, '/') let file = split(a:file, '/') - while (len(dir) > 0 && len(file) > 0) && dir[0] == file[0] + while (len(dir) > 0 && len(file) > 0) && dir[0] ==? file[0] call remove(dir, 0) call remove(file, 0) endwhile