vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit e7f5ce60465d400ade0df69f8a8b9dc04d68de7a
parent ae3db7a079d6c9cb8b43a7276c1695fabdab9509
Author: Rane <rane.brown@lmco.com>
Date:   Sat,  6 Apr 2019 10:43:09 -0600

Fix VimwikiBackLinks on Windows. See Issue #413.

This is a temporary fix until refactoring of path handling is complete.

Diffstat:
Mautoload/vimwiki/base.vim | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim @@ -409,6 +409,10 @@ function! vimwiki#base#backlinks() for source_file in wikifiles let links = s:get_links(source_file, idx) for [target_file, _, lnum, col] in links + if vimwiki#u#is_windows() + " TODO this is a temporary fix - see issue #478 + let target_file = substitute(target_file, '/', '\', 'g') + endif " don't include links from the current file to itself if vimwiki#path#is_equal(target_file, current_filename) && \ !vimwiki#path#is_equal(target_file, source_file)