motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 1fe6202848cd279c986b3fd43631e1538d96005d (tree)
parent a152894a55344957207cdb8e18e05b8baf2c34b4
Author: Tim Pope <code@tpope.net>
Date:   Mon, 22 Jul 2019 15:20:16 -0400

Fix :Gbrowse assuming range

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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()