mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Don't execute autocmds during :GBrowse with range
This commit is contained in:
committed by
Tim Pope
parent
de6495ae84
commit
a7c54990f0
@@ -6465,7 +6465,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
|||||||
let blame_list = tempname()
|
let blame_list = tempname()
|
||||||
call writefile([commit, ''], blame_list, 'b')
|
call writefile([commit, ''], blame_list, 'b')
|
||||||
let blame_in = tempname()
|
let blame_in = tempname()
|
||||||
silent exe '%write' blame_in
|
silent exe 'noautocmd keepalt %write' blame_in
|
||||||
let [blame, exec_error] = s:LinesError(['-c', 'blame.coloring=none', 'blame', '--contents', blame_in, '-L', line1.','.line2, '-S', blame_list, '-s', '--show-number', './' . path], dir)
|
let [blame, exec_error] = s:LinesError(['-c', 'blame.coloring=none', 'blame', '--contents', blame_in, '-L', line1.','.line2, '-S', blame_list, '-s', '--show-number', './' . path], dir)
|
||||||
if !exec_error
|
if !exec_error
|
||||||
let blame_regex = '^\^\x\+\s\+\zs\d\+\ze\s'
|
let blame_regex = '^\^\x\+\s\+\zs\d\+\ze\s'
|
||||||
|
|||||||
Reference in New Issue
Block a user