code: func (t *TextView) SetRegions(regions bool) *TextView {
  	if t.regions != regions {
  		t.index = nil
  	}
  	t.regions = regions
  	return t
  }
docs: // SetRegions sets the flag that allows to define regions in the text. See class
  // description for details.