commit c73107dc10a1e14086f6dbf177339296492ddae3
parent 35af13c1efaba318f02812f2b9098a591e7ec18a
Author: Stefan Lehmann <stevesteve@users.noreply.github.com>
Date: Sun, 19 Jan 2020 17:04:53 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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