Force :leftabove for :Gdiffsplit! with argument

After receiving feedback, I have decided that the forced direction is
what most people expect, so let's limit our :diffsplit matching to the
non-bang variant, for now at least.
This commit is contained in:
Tim Pope
2021-08-29 03:50:21 -04:00
parent d523feebe9
commit c9aaf78541

View File

@@ -6209,7 +6209,11 @@ function! fugitive#Diffsplit(autodir, keepfocus, mods, arg, args) abort
return 'echoerr ' . string(v:exception)
endtry
endif
let mods = s:Mods(a:mods)
if a:keepfocus
let mods = s:Mods(a:mods, 'leftabove')
else
let mods = s:Mods(a:mods)
endif
elseif exists('parents')
let file = get(parents, -1, s:Relative(repeat('0', 40). ':'))
let mods = s:Mods(a:mods, 'leftabove')