Fix modeline errors in historical buffers

Our doautocmd in s:ReplaceCmd already processes the modelines while the
buffer is still modifiable, so we can disable it after tha prevent
subsequent invocations.

Closes #323.
This commit is contained in:
Tim Pope
2014-04-02 02:32:20 -04:00
parent cbab574164
commit 9649b02076

View File

@@ -2269,6 +2269,7 @@ function! s:BufReadObject() abort
endif
elseif b:fugitive_type ==# 'blob'
call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
setlocal nomodeline
endif
finally
keepjumps call setpos('.',pos)