Location
elva.widgets.ytextarea.location
Location manipulation.
Functions:
-
update_location–Move a given location with respect to deletion and insertion ranges of an edit.
update_location(location, delete, insert, target)
Move a given location with respect to deletion and insertion ranges of an edit.
Parameters:
-
location(tuple) –tuple before the edit.
-
delete(Selection) –range which is deleted during the edit.
-
insert(Selection) –range which is inserted during the edit.
-
target(tuple) –returned location when
locationis within the deletion range, typically the start or the end of the insertion range.
Returns:
-
tuple–location after the edit.