motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 07f4f8d2a9747ec87079f908715a804b46eaec2b (tree)
parent 29f16cd92423e2bf399ef30d6bdc4644467601a8
Author: Tim Pope <code@tpope.net>
Date:   Sun,  6 Jan 2019 01:57:33 -0500

Don't set global value of 'modifiable'

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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>