mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Handle mysterious tab at the end of a diff filename with spaces
Closes https://github.com/tpope/vim-fugitive/issues/1202
This commit is contained in:
@@ -2153,9 +2153,9 @@ function! s:StageInline(mode, ...) abort
|
||||
endif
|
||||
let start = index
|
||||
let mode = 'head'
|
||||
elseif mode ==# 'head' && line ==# '--- ' . info.filename
|
||||
elseif mode ==# 'head' && substitute(line, "\t$", '', '') ==# '--- ' . info.filename
|
||||
let mode = 'await'
|
||||
elseif mode ==# 'head' && line ==# '+++ ' . info.filename
|
||||
elseif mode ==# 'head' && substitute(line, "\t$", '', '') ==# '+++ ' . info.filename
|
||||
let mode = 'await'
|
||||
elseif mode ==# 'capture'
|
||||
call add(diff, line)
|
||||
|
||||
Reference in New Issue
Block a user