Drop URL encoding workaround from :GBrowse API

No longer necessary as all known providers handle URL encoding
correctly.

References: https://github.com/cedarbaum/fugitive-azure-devops.vim/issues/3
This commit is contained in:
Tim Pope
2022-07-12 14:15:25 -04:00
parent ff04324bff
commit d84582d5f7

View File

@@ -7503,13 +7503,11 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor
elseif type ==# 'tree' && !empty(path)
let opts.path = s:sub(opts.path, '/\=$', '/')
endif
let opts.path = tr(opts.path, '%', "\032")
let opts.commit = tr(opts.commit, '%', "\032")
for l:.Handler in get(g:, 'fugitive_browse_handlers', [])
let l:.url = call(Handler, [copy(opts)])
if type(url) == type('') && url =~# '://'
return s:BrowserOpen(tr(url, "\032", '%'), a:mods, a:bang)
return s:BrowserOpen(url, a:mods, a:bang)
endif
endfor