Expand description
Cursors and selections.
There is no single-cursor type. A caret is an empty selection, and the
editor always holds a Selections — with one entry in the common case.
Adding multi-cursor later would mean rewriting every editing path twice:
once to add the concept, once to undo what the single-cursor assumption
baked in.
Structs§
- Selection
- A range of text with a fixed
anchorand a movinghead. - Selections
- A non-empty, document-ordered, non-overlapping set of selections.