mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Fix staging hunk that comes after binary file
Closes https://github.com/tpope/vim-fugitive/issues/1462
This commit is contained in:
@@ -3348,6 +3348,8 @@ function! s:StageInline(mode, ...) abort
|
||||
endif
|
||||
let start = index
|
||||
let mode = 'head'
|
||||
elseif mode ==# 'head' && line =~# '^diff '
|
||||
let start = index
|
||||
elseif mode ==# 'head' && substitute(line, "\t$", '', '') ==# '--- ' . info.relative[-1]
|
||||
let mode = 'await'
|
||||
elseif mode ==# 'head' && substitute(line, "\t$", '', '') ==# '+++ ' . info.relative[0]
|
||||
|
||||
Reference in New Issue
Block a user