readonly: remove modifiable check

This commit is contained in:
Christian Brabandt 2017-09-01 09:19:39 +02:00
parent 9e3fcc4cdb
commit e7a5c97df1
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -86,7 +86,7 @@ function! airline#parts#iminsert()
endfunction endfunction
function! airline#parts#readonly() function! airline#parts#readonly()
if &readonly && &modifiable && !filereadable(bufname('%')) if &readonly && !filereadable(bufname('%'))
return '[noperm]' return '[noperm]'
else else
return &readonly ? g:airline_symbols.readonly : '' return &readonly ? g:airline_symbols.readonly : ''