mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
@@ -2500,6 +2500,9 @@ function! fugitive#foldtext() abort
|
|||||||
if filename ==# ''
|
if filename ==# ''
|
||||||
let filename = matchstr(getline(v:foldstart), '^diff .\{-\} a/\zs.*\ze b/')
|
let filename = matchstr(getline(v:foldstart), '^diff .\{-\} a/\zs.*\ze b/')
|
||||||
endif
|
endif
|
||||||
|
if filename ==# ''
|
||||||
|
let filename = getline(v:foldstart)[5:-1]
|
||||||
|
endif
|
||||||
if exists('binary')
|
if exists('binary')
|
||||||
return 'Binary: '.filename
|
return 'Binary: '.filename
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user