diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 0b67db9..ecde485 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1521,7 +1521,6 @@ function! fugitive#BufReadStatus() abort set nomodified readonly noswapfile silent doautocmd BufReadPost - set filetype=fugitive setlocal nomodifiable if &bufhidden ==# '' setlocal bufhidden=delete @@ -1574,6 +1573,7 @@ function! fugitive#BufReadStatus() abort nnoremap q :bdelete nnoremap g? :help fugitive-:Gstatus nnoremap :help fugitive-:Gstatus + set filetype=fugitive for [lnum, section] in [[staged_end, 'Staged'], [unstaged_end, 'Unstaged']] while len(getline(lnum))