Don't save nomodifiable/readonly buffers

This commit is contained in:
shaggyrogers 2018-01-28 13:43:20 +11:00 committed by Marco Hinz
parent 593e67cf2d
commit e8cb5b636c

View File

@ -100,7 +100,7 @@ xnoremap <silent> <plug>(signify-motion-outer-visual) :<c-u>call sy#util#hunk_t
" Function: save {{{1
function! s:save()
if exists('b:sy') && b:sy.active && &modified
if exists('b:sy') && b:sy.active && &modified && &modifiable && ! &readonly
write
endif
endfunction