Skip to content

Commit

Permalink
Merge pull request #25 from wawe/fix-markdown-URL-open
Browse files Browse the repository at this point in the history
Use the HTTP regex to match a URL before opening it.
  • Loading branch information
Daniel Choi committed Jul 25, 2013
2 parents 74bac40 + f5c88ca commit 552852b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/soywiki.vim
Expand Up @@ -574,7 +574,8 @@ func! s:expand(seamless, vertical)
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
Expand Down

0 comments on commit 552852b

Please sign in to comment.