Locate the end of the selection nearest to the character given by index, and adjust that end to be at index (including but not going beyond it); the other end becomes the anchor point for future selection_to() calls. If there is no selection in the entry, a new one is created between index and the most recent anchor point, inclusive. select_adjust() is an alias of selection_adjust().