readonly: remove modifiable check
This commit is contained in:
parent
9e3fcc4cdb
commit
e7a5c97df1
|
@ -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 : ''
|
||||
|
|
Loading…
Reference in New Issue