Replace everything with text and put the caret at the start. History is cleared.
- edit: the text being edited.
- text: the new text.
set_contents :: (edit: *Text_Edit, text: string)
Replace everything with text and put the caret at the start. History is cleared.
Parameters
- edit: *Text_Edit
- the text being edited.
- text: string
- the new text.