bazed-editor / bazed

The baz editor
Apache License 2.0
26 stars 3 forks source link

Properly support and test multiple cursors in core #74

Closed elkowar closed 1 year ago

elkowar commented 1 year ago

While the datastructure in BufferRegions is currently already able to represent multiple carets, edits will frequently crash the editor as the carets will result in deltas being applied out of order.

We need to have some way to guarantee that carets are dealt with in order, and that caret regions never overlap. Once that abstraction exists, we need to have tests and actually a BufferOp to add and remove cursors

elkowar commented 1 year ago

Implemented in #75