Correct foldtext when diff.mnemonic is set
This commit is contained in:
parent
14958f37e3
commit
09743e76a0
@ -2486,7 +2486,7 @@ function! fugitive#foldtext() abort
|
|||||||
let [add, remove] = [-1, -1]
|
let [add, remove] = [-1, -1]
|
||||||
let filename = ''
|
let filename = ''
|
||||||
for lnum in range(v:foldstart, v:foldend)
|
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]
|
let filename = getline(lnum)[6:-1]
|
||||||
endif
|
endif
|
||||||
if getline(lnum) =~# '^+'
|
if getline(lnum) =~# '^+'
|
||||||
|
Loading…
Reference in New Issue
Block a user