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