Enforce foldmethod=syntax in commits

Closes #432.
This commit is contained in:
Tim Pope
2014-06-21 10:25:30 -04:00
parent b0bc71460a
commit 4b75c7bff2

View File

@@ -2325,7 +2325,7 @@ function! s:BufReadObject() abort
setlocal bufhidden=delete setlocal bufhidden=delete
endif endif
if b:fugitive_type !=# 'blob' if b:fugitive_type !=# 'blob'
set filetype=git setlocal filetype=git foldmethod=syntax
nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += v:count1<Bar>exe <SID>BufReadObject()<CR> nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += v:count1<Bar>exe <SID>BufReadObject()<CR>
nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= v:count1<Bar>exe <SID>BufReadObject()<CR> nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= v:count1<Bar>exe <SID>BufReadObject()<CR>
else else