mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user