Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea7dc96

Browse files
committed
fix #196
1 parent 52e2d54 commit ea7dc96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎autoload/gist.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,16 @@ function! s:open_browser(url) abort
9898
echo a:url
9999
return
100100
endif
101+
let quote = &shellxquote == '"' ? "'" : '"'
101102
if cmd =~# '^!'
102-
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
103105
silent! exec cmd
104106
elseif cmd =~# '^:[A-Z]'
105107
let cmd = substitute(cmd, '%URL%', '\=a:url', 'g')
106108
exec cmd
107109
else
108-
let cmd = substitute(cmd, '%URL%', '\=shellescape(a:url)', 'g')
110+
let cmd = substitute(cmd, '%URL%', '\=quote.a:url.quote', 'g')
109111
call system(cmd)
110112
endif
111113
endfunction

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /