From c73107dc10a1e14086f6dbf177339296492ddae3 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sun, 19 Jan 2020 17:04:53 +0100 Subject: [PATCH] Fix for Issue #807 creating a new link to an existing page in the diary path now uses the full page name instead of just the first word. --- autoload/vimwiki/base.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index eb9a4d4..9d8dc1b 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -2182,7 +2182,7 @@ function! vimwiki#base#normalize_link_in_diary(lnk) abort let template = vimwiki#vars#get_global('WikiLinkTemplate1') elseif link_exists_in_diary let str = a:lnk - let rxUrl = vimwiki#vars#get_global('rxWord') + let rxUrl = '.*' let rxDesc = '' let template = vimwiki#vars#get_global('WikiLinkTemplate1') elseif link_exists_in_wiki