mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
URL escape :command special characters
Handle the case where the :Browse or :OpenBrowser command we delegate to is defined with -bar.
This commit is contained in:
@@ -6259,7 +6259,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
|||||||
call s:throw("No GBrowse handler installed for '".raw."'")
|
call s:throw("No GBrowse handler installed for '".raw."'")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let url = s:gsub(url, '[ <>]', '\="%".printf("%02X",char2nr(submatch(0)))')
|
let url = substitute(url, '[ <>\|"]', '\="%".printf("%02X",char2nr(submatch(0)))', 'g')
|
||||||
if a:bang
|
if a:bang
|
||||||
if has('clipboard')
|
if has('clipboard')
|
||||||
let @+ = url
|
let @+ = url
|
||||||
|
|||||||
Reference in New Issue
Block a user