commit 90ee6fb5d255d14d9f12f2469f92ee50149f5b44 (tree)
parent 04fe4bfcd93574968547f786f71d7a349b3f2efe
Author: Tim Pope <code@tpope.net>
Date: Sun, 27 Jul 2014 12:14:42 -0400
Pass line1 and line2 as 0 for :Gbrowse without range
Closes #530.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -2183,8 +2183,8 @@ function! s:Browse(bang,line1,count,...) abort
\ 'commit': commit,
\ 'path': path,
\ 'type': type,
- \ 'line1': a:line1,
- \ 'line2': a:count}])
+ \ 'line1': a:count > 0 ? a:line1 : 0,
+ \ 'line2': a:count > 0 ? a:count : 0}])
if !empty(url)
break
endif