Fix regression bug: correctly convert links like [[http:...]]

Ref #123
This commit is contained in:
EinfachToll 2015-05-12 15:54:53 +02:00
parent b5da4ffc8a
commit 6846459255

View File

@ -422,7 +422,7 @@ function! s:tag_wikilink(value) "{{{
elseif link_infos.scheme ==# 'local'
let html_link = vimwiki#path#relpath(fnamemodify(s:current_html_file,
\ ':h'), link_infos.filename)
else
elseif link_infos.scheme =~# '\mwiki\d\+\|diary'
" wiki links are always relative to the current file
let html_link = vimwiki#path#relpath(
\ fnamemodify(s:current_wiki_file, ':h'),
@ -430,6 +430,8 @@ function! s:tag_wikilink(value) "{{{
if html_link !~ '\m/$'
let html_link .= '.html'
endif
else " other schemes, like http, are left untouched
let html_link = link_infos.filename
endif
" generate html output