lib/soywiki.vim in soywiki-0.9.2 vs lib/soywiki.vim in soywiki-0.9.3
- old
+ new
@@ -572,10 +572,11 @@
redraw
echom "Expanded " . (a:seamless == 0 ? 'seamfully' : 'seamlessly') . "."
endfunc
"------------------------------------------------------------------------
func! s:open_href_under_cursor()
- let href = expand("<cWORD>")
+ let word = expand("<cWORD>")
+ let href = matchstr(word, s:http_link_pattern)
let command = g:SoyWiki#browser_command . " '" . href . "' "
call system(command)
echom command
endfunc