886 fix generate links on windows (#1011)

* 886 fix generate links on windows

* update docs

* 886
This commit is contained in:
Benney Au
2020-09-06 17:45:48 +10:00
committed by GitHub
parent 990b25ce37
commit 842f842100
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -131,8 +131,8 @@ function! vimwiki#path#relpath(dir, file) abort
return a:file
endif
" Unixify && Expand in
let s_dir = expand(s:unixify(a:dir))
let s_file = expand(s:unixify(a:file))
let s_dir = s:unixify(expand(a:dir))
let s_file = s:unixify(expand(a:file))
" Split path
let dir = split(s_dir, '/')
@@ -164,7 +164,7 @@ function! vimwiki#path#relpath(dir, file) abort
let result_path .= '/'
endif
return s:osxify(result_path)
return result_path
endfunction