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
1 changed files with 1 additions and 1 deletions

View File

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