Don't set global value of 'modifiable'

This commit is contained in:
Tim Pope 2019-01-06 01:57:33 -05:00
parent 29f16cd924
commit 07f4f8d2a9

View File

@ -1718,7 +1718,7 @@ function! fugitive#BufReadCmd(...) abort
if &bufhidden ==# ''
setlocal bufhidden=delete
endif
let &modifiable = modifiable
let &l:modifiable = modifiable
if b:fugitive_type !=# 'blob'
setlocal filetype=git foldmethod=syntax
nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += v:count1<Bar>exe fugitive#BufReadCmd(@%)<CR>