From 90ee6fb5d255d14d9f12f2469f92ee50149f5b44 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 27 Jul 2014 12:14:42 -0400 Subject: [PATCH] Pass line1 and line2 as 0 for :Gbrowse without range Closes #530. --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 63ea32f..b5a204b 100644 --- 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