parts#readonly: fix filereadable check with #1054
This commit is contained in:
parent
5ab8b754d8
commit
595d270398
@ -70,8 +70,7 @@ function! airline#parts#iminsert()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#parts#readonly()
|
function! airline#parts#readonly()
|
||||||
let buffer=winbufnr('')
|
if &readonly && &modifiable && !filereadable(bufname('%'))
|
||||||
if &readonly && &modifiable && !filereadable(buffer)
|
|
||||||
return '[noperm]'
|
return '[noperm]'
|
||||||
else
|
else
|
||||||
return &readonly ? g:airline_symbols.readonly : ''
|
return &readonly ? g:airline_symbols.readonly : ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user