mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Don't set global value of 'modifiable'
This commit is contained in:
@@ -1718,7 +1718,7 @@ function! fugitive#BufReadCmd(...) abort
|
|||||||
if &bufhidden ==# ''
|
if &bufhidden ==# ''
|
||||||
setlocal bufhidden=delete
|
setlocal bufhidden=delete
|
||||||
endif
|
endif
|
||||||
let &modifiable = modifiable
|
let &l:modifiable = modifiable
|
||||||
if b:fugitive_type !=# 'blob'
|
if b:fugitive_type !=# 'blob'
|
||||||
setlocal filetype=git foldmethod=syntax
|
setlocal filetype=git foldmethod=syntax
|
||||||
nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += v:count1<Bar>exe fugitive#BufReadCmd(@%)<CR>
|
nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += v:count1<Bar>exe fugitive#BufReadCmd(@%)<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user