From 320b18fba2a4f2fe3c8225c778c687e0d2620384 Mon Sep 17 00:00:00 2001 From: Kevin Hwang Date: Wed, 20 Nov 2024 01:16:44 +0800 Subject: [PATCH] Fix tab Gdiffsplit opening empty buffer --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 17fd04d38f..5e69102862 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6627,7 +6627,7 @@ function! fugitive#Diffsplit(autodir, keepfocus, mods, arg, ...) abort let commit = s:DirCommitFile(@%)[1] if a:mods =~# '\<\d*tab\>' let mods = substitute(a:mods, '\<\d*tab\>', '', 'g') - let pre = matchstr(a:mods, '\<\d*tab\>') . 'edit' + let pre = matchstr(a:mods, '\<\d*tab\>') . ' split' else let mods = 'keepalt ' . a:mods let pre = ''