From 99fccd08e2c2e4dccae600e21f2a3c47f8b6e637 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 18 Mar 2021 22:17:34 -0400 Subject: [PATCH] Make :Gdiffsplit! from common ancestor stage open ours and theirs References https://github.com/tpope/vim-fugitive/issues/1706 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index e1bd5cd..c8bdeca 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4999,7 +4999,7 @@ function! fugitive#Diffsplit(autodir, keepfocus, mods, arg, args) abort let back = exists('*win_getid') ? 'call win_gotoid(' . win_getid() . ')' : 'wincmd p' if (empty(args) || args[0] ==# ':') && a:keepfocus exe s:DirCheck() - if empty(commit) && s:IsConflicted() + if commit =~# '^1\=$' && s:IsConflicted() let parents = [s:Relative(':2:'), s:Relative(':3:')] elseif empty(commit) let parents = [s:Relative(':0:')]