Minimum viable URL escaping in :Gbrowse
Closes https://github.com/tpope/vim-fugitive/issues/703.
This commit is contained in:
parent
09cdce7add
commit
9f768cd3bc
@ -2275,6 +2275,7 @@ function! s:Browse(bang,line1,count,...) abort
|
|||||||
call s:throw("Instaweb failed to start and '".remote."' is not a supported remote")
|
call s:throw("Instaweb failed to start and '".remote."' is not a supported remote")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let url = s:gsub(url, '[ <>]', '\="%".printf("%02X",char2nr(submatch(0)))')
|
||||||
if a:bang
|
if a:bang
|
||||||
if has('clipboard')
|
if has('clipboard')
|
||||||
let @* = url
|
let @* = url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user