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
|
endfor
|
||||||
if get(a:offsets, 0, 0) >= 0
|
if get(a:offsets, 0, 0) >= 0
|
||||||
let items[-1].context = {'diff': items[0:-2]}
|
let items[-1].context = {'diff': items[0:-2]}
|
||||||
|
else
|
||||||
|
let item[-1].context = {}
|
||||||
endif
|
endif
|
||||||
return [items[-1]]
|
return [items[-1]]
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user