mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -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)
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user