From 9649b020760554eb607b4c659e3dc1a45fe82179 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 2 Apr 2014 02:32:20 -0400 Subject: [PATCH] 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. --- plugin/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 074e049..fd7b7fe 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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)