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 4a5781bc1b17b320380712ac3cceffc81e7555b9 (tree)
parent 71acb7da35a86912117683c3cfe6beefaea33e9a
Author: Tim Pope <code@tpope.net>
Date:   Sun, 22 Jul 2018 01:57:39 -0400

Fix issue generating Fugitive URLs

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -343,7 +343,7 @@ function! s:repo_translate(spec, ...) dict abort endif if !exists('f') let commit = substitute(matchstr(rev,'^[^:]\+\|^:.*'), '^@\%($|[^~]\)\@=', 'HEAD', '') - let file = substitute(matchstr(rev, '^[^:]\+:.*'), '^:', '/', '') + let file = substitute(matchstr(rev, '^[^:]\+\zs:.*'), '^:', '/', '') if commit !~# '^[0-9a-f]\{40\}$' let commit = system(fugitive#Prepare(dir, 'rev-parse', '--verify', commit))[0:-2] let commit = v:shell_error ? '' : commit