Prettify: Special case in diary not so special

Same as generic case within this PR
This commit is contained in:
Tinmarino 2020-04-22 11:21:49 -04:00
parent c73107dc10
commit 1020ac51bf
1 changed files with 0 additions and 5 deletions

View File

@ -2180,11 +2180,6 @@ function! vimwiki#base#normalize_link_in_diary(lnk) abort
let rxUrl = vimwiki#vars#get_global('rxWord')
let rxDesc = '\d\d\d\d-\d\d-\d\d'
let template = vimwiki#vars#get_global('WikiLinkTemplate1')
elseif link_exists_in_diary
let str = a:lnk
let rxUrl = '.*'
let rxDesc = ''
let template = vimwiki#vars#get_global('WikiLinkTemplate1')
elseif link_exists_in_wiki
let depth = len(split(vimwiki#vars#get_wikilocal('diary_rel_path'), '/'))
let str = repeat('../', depth) . a:lnk