Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

s:system(...) -> s:system({expr})

  • Loading branch information...
commit 2ac4196129a556a78956a2bc9cdbab45c5f5dbfd 1 parent 2285f6a
@tyru tyru authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 autoload/openbrowser.vim
View
12 autoload/openbrowser.vim
@@ -511,26 +511,26 @@ function! s:get_var(varname) "{{{
endfunction "}}}
if g:__openbrowser_platform.mswin
- function! s:system(...)
+ function! s:system(expr)
" Escape cmdline-special
" * :help cmdline-special
" * :help expand()
let pat = '[%#<>]'
let sub = '\\\0'
- let args = map(copy(a:000), 'substitute(v:val, pat, sub, "g")')
- " Spawn 'args' with 'noshellslash'
+ let expr = substitute(a:expr, pat, sub, "g")
+ " Spawn 'expr' with 'noshellslash'
" to avoid expansion. (e.g., '\' -> '/')
let shellslash = &l:shellslash
setlocal noshellslash
try
- execute '!start' join(args, ' ')
+ execute '!start' expr
finally
let &l:shellslash = shellslash
endtry
endfunction
else
- function! s:system(...)
- return call('system', a:000)
+ function! s:system(expr)
+ return system(a:expr)
endfunction
endif

0 comments on commit 2ac4196

Please sign in to comment.
Something went wrong with that request. Please try again.