From 842f842100abc84f511c09759fbf40318ca87c0e Mon Sep 17 00:00:00 2001 From: Benney Au Date: Sun, 6 Sep 2020 17:45:48 +1000 Subject: [PATCH] 886 fix generate links on windows (#1011) * 886 fix generate links on windows * update docs * 886 --- autoload/vimwiki/path.vim | 6 +++--- doc/vimwiki.txt | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/autoload/vimwiki/path.vim b/autoload/vimwiki/path.vim index 05f98ba..a822281 100644 --- a/autoload/vimwiki/path.vim +++ b/autoload/vimwiki/path.vim @@ -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 diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 3926880..46ffbd6 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -3828,6 +3828,7 @@ Contributors and their Github usernames in roughly chronological order: - Birger Niklas (@BirgerNi) - Chip Senkbeil (@chipsenkbeil) - Jerome Gay (@jeromg) + - Benney Au (@chinwobble) ============================================================================== 16. Changelog *vimwiki-changelog* @@ -3876,6 +3877,7 @@ Changed:~ Removed:~ Fixed:~ + * Issue #886: :VimwikiGenerateLinks not working on Windows * Issue #55: Newlines in blockquotes are not honored * Issue #55: BlockQuote restarts list numbering * Issue #979: Fix: Accessing other filetypes within vimwiki