We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2f19f commit b1be4e8Copy full SHA for b1be4e8
autoload/gist.vim
@@ -98,14 +98,16 @@ function! s:open_browser(url) abort
98
echo a:url
99
return
100
endif
101
+ let quote = &shellxquote == '"' ? "'" : '"'
102
if cmd =~# '^!'
- let cmd = substitute(cmd, '%URL%', '\=shellescape(a:url)', 'g')
103
+ let cmd = substitute(cmd, '%URL%', '\=quote.a:url.quote', 'g')
104
+ let g:hoge = cmd
105
silent! exec cmd
106
elseif cmd =~# '^:[A-Z]'
107
let cmd = substitute(cmd, '%URL%', '\=a:url', 'g')
108
exec cmd
109
else
110
111
call system(cmd)
112
113
endfunction
0 commit comments