commit 10293f60d70a0aa7850fec4d613e2810735c3123
parent de11957fca64382209911815d2ed528aa8c02c1b
Author: Ivan Tishchenko <ivan.tishchenko@dsr-company.con>
Date: Tue, 3 Feb 2015 13:34:07 +0400
Use case insensitive path comparison for vimwiki#path#relpath()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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