Skip to content

Commit

Permalink
Merge pull request #895 from mattn/fix-openbrowser
Browse files Browse the repository at this point in the history
escape #
  • Loading branch information
fatih authored Jun 11, 2016
2 parents 492e54b + 98fe1f9 commit a3452fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/go/tool.vim
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ function! go#tool#OpenBrowser(url)
return
endif
if cmd =~ '^!'
let cmd = substitute(cmd, '%URL%', '\=shellescape(a:url)', 'g')
let cmd = substitute(cmd, '%URL%', '\=escape(shellescape(a:url),"#")', 'g')
silent! exec cmd
elseif cmd =~ '^:[A-Z]'
let cmd = substitute(cmd, '%URL%', '\=a:url', 'g')
let cmd = substitute(cmd, '%URL%', '\=escape(a:url,"#")', 'g')
exec cmd
else
let cmd = substitute(cmd, '%URL%', '\=shellescape(a:url)', 'g')
Expand Down

0 comments on commit a3452fd

Please sign in to comment.