Fix decoding URLs

This commit is contained in:
Tim Pope 2013-01-19 23:06:57 -05:00
parent a80ff87f94
commit c0bdf9b971

View File

@ -732,7 +732,7 @@ function! s:decode_url(url) abort
let url = substitute(url, '^\%(jar:\)\=file:\zs/\ze\w:/', '', '')
let url = substitute(url, '^file:', '', '')
let url = substitute(url, '^jar:\(.*\)!/', 'zip\1::', '')
let url = substitute(url, '%\(\x\x\)', '\=eval(''"\x''.submatch(1).''"'')', '')
let url = substitute(url, '%\(\x\x\)', '\=eval(''"\x''.submatch(1).''"'')', 'g')
return url
endfunction