mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43: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
|
endif
|
||||||
elseif b:fugitive_type ==# 'blob'
|
elseif b:fugitive_type ==# 'blob'
|
||||||
call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
|
call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
|
||||||
|
setlocal nomodeline
|
||||||
endif
|
endif
|
||||||
finally
|
finally
|
||||||
keepjumps call setpos('.',pos)
|
keepjumps call setpos('.',pos)
|
||||||
|
|||||||
Reference in New Issue
Block a user