motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit b3de2f22844f45a7a1bdd50251ae58d22795dd9e (tree)
parent 5c5581386fb951866e7267bfeec17a791ea30e96
Author: Tim Pope <code@tpope.net>
Date:   Tue, 12 Feb 2019 10:39:24 -0500

Handle mysterious tab at the end of a diff filename with spaces

Closes https://github.com/tpope/vim-fugitive/issues/1202

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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)