From b319b694539017dcd789dc2c42f784a30d7b28b8 Mon Sep 17 00:00:00 2001 From: Patrick Davey Date: Fri, 31 Jul 2015 10:09:06 +1200 Subject: [PATCH] Add the "L" prefix which github requires for highlighting ranges now Fixes https://github.com/tpope/vim-fugitive/issues/669 --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index ec4edb4..6a7cf4d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2317,7 +2317,7 @@ function! s:github_url(opts, ...) abort if get(a:opts, 'line2') && a:opts.line1 == a:opts.line2 let url .= '#L' . a:opts.line1 elseif get(a:opts, 'line2') - let url .= '#L' . a:opts.line1 . '-' . a:opts.line2 + let url .= '#L' . a:opts.line1 . '-L' . a:opts.line2 endif elseif a:opts.type == 'tag' let commit = matchstr(getline(3),'^tag \zs.*')