From efe5f648de1f7acd12aa4eabc3e25d49f635e1b9 Mon Sep 17 00:00:00 2001 From: Rane Brown Date: Thu, 16 May 2019 20:47:17 -0600 Subject: [PATCH] Convert path to use '\' for windows in backlinks function. Fixes #413 --- autoload/vimwiki/base.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index c009011..8a5200e 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -441,6 +441,7 @@ function! vimwiki#base#backlinks() if vimwiki#u#is_windows() " TODO this is a temporary fix - see issue #478 let target_file = substitute(target_file, '/', '\', 'g') + let current_filename = substitute(current_filename, '/', '\', 'g') endif " don't include links from the current file to itself if vimwiki#path#is_equal(target_file, current_filename) &&