mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-12 16:10:19 +08:00
Don't set global value of 'modifiable'
This commit is contained in:
1 parent
29f16cd924
commit
07f4f8d2a9
1 file changed
+1
-1
@@ -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