Restore :Gdiffsplit :n

This commit is contained in:
Tim Pope 2019-07-22 14:31:57 -04:00
parent 80996c2e2c
commit 8a693fb7bc

View File

@ -4157,6 +4157,8 @@ function! s:Diff(autodir, keepfocus, mods, ...) abort
let file = s:Relative()
elseif arg ==# ':'
let file = s:Relative(':0:')
elseif arg =~# '^:\d$'
let file = s:Relative(arg . ':')
else
try
let file = arg =~# '^:/.' ? fugitive#RevParse(arg) . s:Relative(':') : s:Expand(arg)