change-caret&mark ( editor quot: ( loc document -- newloc ) -- )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Editor gadgets » The caret and mark

Prev:change-caret ( editor quot: ( loc document -- newloc ) -- )
Next:mark>caret ( editor -- )


Vocabulary
ui.gadgets.editors

Inputs
editoran editor
quota quotation with stack effect ( loc document -- newloc )


Outputs
None

Word description
Applies a quotation to the current caret location and moves the caret and the mark to the location output by the quotation.

See also
change-caret, mark>caret

Definition