Fix regression bug: opening URLs didn't work

Fix #68 and #73
This commit is contained in:
EinfachToll
2014-09-11 10:36:44 +02:00
parent b954923cbf
commit f109e0e488
2 changed files with 9 additions and 8 deletions

View File

@ -2239,11 +2239,11 @@ similar to 'local:' and 'file:' schemes, but are always opened with Vim: >
\ ', subdir='.subdir.', lnk='.lnk.', ext='.ext.', url='.url.
\ ', anchor='.anchor
endif
if path == ''
if url == '' && anchor == ''
echom 'Vimwiki Error: Unable to resolve link!'
return 0
else
call vimwiki#base#edit_file('tabnew', url, '', [], 0)
call vimwiki#base#edit_file('tabnew', url, anchor, [], 0)
return 1
endif
endfunction " }}}