Add the "L" prefix which github requires for highlighting ranges now

Fixes https://github.com/tpope/vim-fugitive/issues/669
This commit is contained in:
Patrick Davey
2015-07-31 10:09:06 +12:00
committed by Tim Pope
parent 03cc95cc19
commit b319b69453

View File

@@ -2317,7 +2317,7 @@ function! s:github_url(opts, ...) abort
if get(a:opts, 'line2') && a:opts.line1 == a:opts.line2 if get(a:opts, 'line2') && a:opts.line1 == a:opts.line2
let url .= '#L' . a:opts.line1 let url .= '#L' . a:opts.line1
elseif get(a:opts, 'line2') 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 endif
elseif a:opts.type == 'tag' elseif a:opts.type == 'tag'
let commit = matchstr(getline(3),'^tag \zs.*') let commit = matchstr(getline(3),'^tag \zs.*')