Fix inline diffs including submodule logs

Closes https://github.com/tpope/vim-fugitive/issues/1151
This commit is contained in:
Tim Pope 2019-01-03 11:43:02 -05:00
parent fa6d7886e7
commit 6cf448324c

View File

@ -2125,7 +2125,7 @@ function! s:StageInline(mode, ...) abort
if mode ==# 'await' && line[0] ==# '@' if mode ==# 'await' && line[0] ==# '@'
let mode = 'capture' let mode = 'capture'
endif endif
if line[0] ==# 'd' if mode !=# 'head' && line !~# '^[ @+-]'
if len(diff) if len(diff)
break break
endif endif