mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
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:
@@ -6209,7 +6209,11 @@ function! fugitive#Diffsplit(autodir, keepfocus, mods, arg, args) abort
|
|||||||
return 'echoerr ' . string(v:exception)
|
return 'echoerr ' . string(v:exception)
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
if a:keepfocus
|
||||||
|
let mods = s:Mods(a:mods, 'leftabove')
|
||||||
|
else
|
||||||
let mods = s:Mods(a:mods)
|
let mods = s:Mods(a:mods)
|
||||||
|
endif
|
||||||
elseif exists('parents')
|
elseif exists('parents')
|
||||||
let file = get(parents, -1, s:Relative(repeat('0', 40). ':'))
|
let file = get(parents, -1, s:Relative(repeat('0', 40). ':'))
|
||||||
let mods = s:Mods(a:mods, 'leftabove')
|
let mods = s:Mods(a:mods, 'leftabove')
|
||||||
|
|||||||
Reference in New Issue
Block a user