From 1fe6202848cd279c986b3fd43631e1538d96005d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 22 Jul 2019 15:20:16 -0400 Subject: [PATCH] Fix :Gbrowse assuming range --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 928751c..4c997f9 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4701,7 +4701,7 @@ function! s:BrowseCommand(line1, line2, range, count, bang, mods, reg, arg, args let line1 = a:count > 0 ? a:line1 : 0 let line2 = a:count > 0 ? a:count : 0 if empty(commit) && path !~# '^\.git/' - if a:line1 && !a:count && !empty(merge) + if a:count < 0 && !empty(merge) let commit = merge else let commit = '' @@ -4711,7 +4711,7 @@ function! s:BrowseCommand(line1, line2, range, count, bang, mods, reg, arg, args if exec_error let commit = '' endif - if a:count && empty(a:args) && commit =~# '^\x\{40,\}$' + if a:count > 0 && empty(a:args) && commit =~# '^\x\{40,\}$' let blame_list = tempname() call writefile([commit, ''], blame_list, 'b') let blame_in = tempname()