From 6cf448324cee6746af31ab2ff81554e726fdfb1a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 3 Jan 2019 11:43:02 -0500 Subject: [PATCH] Fix inline diffs including submodule logs Closes https://github.com/tpope/vim-fugitive/issues/1151 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9f82733..758ee1f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2125,7 +2125,7 @@ function! s:StageInline(mode, ...) abort if mode ==# 'await' && line[0] ==# '@' let mode = 'capture' endif - if line[0] ==# 'd' + if mode !=# 'head' && line !~# '^[ @+-]' if len(diff) break endif