Pass line1 and line2 as 0 for :Gbrowse without range

Closes #530.
This commit is contained in:
Tim Pope
2014-07-27 12:14:42 -04:00
parent 04fe4bfcd9
commit 90ee6fb5d2

View File

@@ -2183,8 +2183,8 @@ function! s:Browse(bang,line1,count,...) abort
\ 'commit': commit, \ 'commit': commit,
\ 'path': path, \ 'path': path,
\ 'type': type, \ 'type': type,
\ 'line1': a:line1, \ 'line1': a:count > 0 ? a:line1 : 0,
\ 'line2': a:count}]) \ 'line2': a:count > 0 ? a:count : 0}])
if !empty(url) if !empty(url)
break break
endif endif