Correct foldtext when diff.mnemonic is set

This commit is contained in:
Tim Pope 2012-10-21 22:54:59 -04:00
parent 14958f37e3
commit 09743e76a0

View File

@ -2486,7 +2486,7 @@ function! fugitive#foldtext() abort
let [add, remove] = [-1, -1]
let filename = ''
for lnum in range(v:foldstart, v:foldend)
if filename ==# '' && getline(lnum) =~# '^[+-]\{3\} [ab]/'
if filename ==# '' && getline(lnum) =~# '^[+-]\{3\} [abciow12]/'
let filename = getline(lnum)[6:-1]
endif
if getline(lnum) =~# '^+'