motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 9f768cd3bc4bee34e5d447c589345f25c3392d63 (tree)
parent 09cdce7add258f8f6d1c9d9973f9978e5b4a9ccd
Author: Tim Pope <code@tpope.net>
Date:   Sat, 26 Dec 2015 14:11:54 -0500

Minimum viable URL escaping in :Gbrowse

Closes https://github.com/tpope/vim-fugitive/issues/703.

Diffstat:
Mplugin/fugitive.vim | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -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") endif + let url = s:gsub(url, '[ <>]', '\="%".printf("%02X",char2nr(submatch(0)))') if a:bang if has('clipboard') let @* = url