Skip to content

Commit

Permalink
fix(ui): wrap the url in quotes to open (#4832)
Browse files Browse the repository at this point in the history
Closes #4830
  • Loading branch information
fannheyward authored Feb 21, 2024
1 parent e18f99b commit d49c6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/coc/ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ function! coc#ui#open_url(url)
return
endif
if has('mac') && executable('open')
call system('open '.a:url)
call system('open "'.a:url.'"')
return
endif
if executable('xdg-open')
call system('xdg-open '.a:url)
call system('xdg-open "'.a:url.'"')
return
endif
call system('cmd /c start "" /b '. substitute(a:url, '&', '^&', 'g'))
Expand Down

0 comments on commit d49c6ee

Please sign in to comment.