diff options
Diffstat (limited to 'bundle/github-url/plugin')
-rw-r--r-- | bundle/github-url/plugin/github_url.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundle/github-url/plugin/github_url.vim b/bundle/github-url/plugin/github_url.vim index 8f91c56..3eaaba0 100644 --- a/bundle/github-url/plugin/github_url.vim +++ b/bundle/github-url/plugin/github_url.vim @@ -16,7 +16,11 @@ function! s:FileURL(include_lines, start_line, end_line) let lines = '' if a:include_lines - let lines = '#L' . a:start_line . '-L' . a:end_line + let lines = '#L' . a:start_line + + if a:start_line != a:end_line + let lines = lines . '-L' . a:end_line + endif endif return s:BaseRepoURL() . '/blob/' . current_sha . '/' . current_filename . lines |