commit b319b694539017dcd789dc2c42f784a30d7b28b8 (tree)
parent 03cc95cc198ea94a6a003a92cd0e58af4416ec25
Author: Patrick Davey <patrick.davey@resolvedigital.co.nz>
Date: Fri, 31 Jul 2015 10:09:06 +1200
Add the "L" prefix which github requires for highlighting ranges now
Fixes https://github.com/tpope/vim-fugitive/issues/669
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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.*')