From 09ffa8fc08c27b47790f954396adacfe6c450130 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 19 May 2024 00:36:48 -0400 Subject: [PATCH] Fix :Git difftool -y Resolves: https://github.com/tpope/vim-fugitive/issues/2306 --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 5b86042..9eb928c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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