UI module

delete_by

procedure · 1 overloadsince 0.31.0Source

Delete one unit before (direction -1) or after (1) the caret, or the selection if there is one.

delete_by :: (edit: *Text_Edit, unit: Unit, direction: int)

Delete one unit before (direction -1) or after (1) the caret, or the selection if there is one.

Parameters

edit: *Text_Edit
the text being edited.
unit: Unit
how much to delete.
direction: int
-1 for before the caret, 1 for after.

See also