mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Fix :Git difftool -y
Resolves: https://github.com/tpope/vim-fugitive/issues/2306
This commit is contained in:
@@ -5483,6 +5483,8 @@ function! s:ToolItems(state, from, to, offsets, text, ...) abort
|
||||
endfor
|
||||
if get(a:offsets, 0, 0) >= 0
|
||||
let items[-1].context = {'diff': items[0:-2]}
|
||||
else
|
||||
let item[-1].context = {}
|
||||
endif
|
||||
return [items[-1]]
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user