From 3ca888470b3889050ddc7b8528f885c0c392e926 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 11 Aug 2019 22:32:48 -0400 Subject: [PATCH] Expand diffs on :Gcommit --patch --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 4207178..07356b5 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3230,7 +3230,7 @@ function! s:CommitInteractive(line1, line2, range, bang, mods, args, patch) abor let status = s:StatusCommand(a:line1, a:line2, a:range, a:line2, a:bang, a:mods, '', '', []) let status = len(status) ? status . '|' : '' if a:patch - return status . 'if search("^Unstaged")|exe "+"|endif' + return status . 'if search("^Unstaged")|exe "normal >"|exe "+"|endif' else return status . 'if search("^Untracked\\|^Unstaged")|exe "+"|endif' endif