Move foldtext autocommand back to folding section
This commit is contained in:
parent
f8913cda12
commit
ddec4bfa86
@ -298,11 +298,6 @@ augroup fugitive
|
|||||||
autocmd FileReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe fugitive#FileRead()
|
autocmd FileReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe fugitive#FileRead()
|
||||||
|
|
||||||
autocmd User Flags call Hoist('buffer', function('FugitiveStatusline'))
|
autocmd User Flags call Hoist('buffer', function('FugitiveStatusline'))
|
||||||
|
|
||||||
autocmd User Fugitive
|
|
||||||
\ if &filetype =~# '^git\%(commit\)\=$' && &foldtext ==# 'foldtext()' |
|
|
||||||
\ set foldtext=fugitive#Foldtext() |
|
|
||||||
\ endif
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" Section: Initialization
|
" Section: Initialization
|
||||||
@ -3222,3 +3217,11 @@ endfunction
|
|||||||
function! fugitive#foldtext() abort
|
function! fugitive#foldtext() abort
|
||||||
return fugitive#Foldtext()
|
return fugitive#Foldtext()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
augroup fugitive_folding
|
||||||
|
autocmd!
|
||||||
|
autocmd User Fugitive
|
||||||
|
\ if &filetype =~# '^git\%(commit\)\=$' && &foldtext ==# 'foldtext()' |
|
||||||
|
\ set foldtext=fugitive#Foldtext() |
|
||||||
|
\ endif
|
||||||
|
augroup END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user