aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/github-url/plugin/github_url.vim
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/github-url/plugin/github_url.vim')
-rw-r--r--bundle/github-url/plugin/github_url.vim6
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