Don't set global value of 'modifiable'
This commit is contained in:
parent
29f16cd924
commit
07f4f8d2a9
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user