Fix path resolution of diary notes (#442)
This commit is contained in:
parent
1c4a9bb1af
commit
a2a9f2e6ca
@ -253,7 +253,12 @@ endfunction "}}}
|
|||||||
|
|
||||||
" vimwiki#base#open_link
|
" vimwiki#base#open_link
|
||||||
function! vimwiki#base#open_link(cmd, link, ...) "{{{
|
function! vimwiki#base#open_link(cmd, link, ...) "{{{
|
||||||
let link_infos = vimwiki#base#resolve_link(a:link)
|
let link_infos = {}
|
||||||
|
if a:0
|
||||||
|
let link_infos = vimwiki#base#resolve_link(a:link, a:1)
|
||||||
|
else
|
||||||
|
let link_infos = vimwiki#base#resolve_link(a:link)
|
||||||
|
endif
|
||||||
|
|
||||||
if link_infos.filename == ''
|
if link_infos.filename == ''
|
||||||
echomsg 'Vimwiki Error: Unable to resolve link!'
|
echomsg 'Vimwiki Error: Unable to resolve link!'
|
||||||
|
Loading…
Reference in New Issue
Block a user