@requires_segment_info
def readonly_indicator(pl, segment_info, text=u'RO'):
 return (text if int(vim_getbufoption(segment_info, u'readonly')) else None)

@ requires_segment_info def readonly_indicator ( pl , segment_info , text = u'RO' ) : return ( text if int ( vim_getbufoption ( segment_info , u'readonly' ) ) else None )
return a read-only indicator .