aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/test/helpers.rs
diff options
context:
space:
mode:
authorPascal Kuthe2023-03-09 21:19:14 +0000
committerBlaž Hrastnik2023-03-10 07:54:17 +0000
commit2b64a64d7ea43e22ad82f97f2c118891b74c3199 (patch)
treef81846cf308e9b99192479830259b4a52d44ac1f /helix-term/tests/test/helpers.rs
parentcdec933523560f71c665469adc409d7ac0e06171 (diff)
Add API to create a Transaction from potentially overlapping changes
This commit adds new functions to `Transaction` that allow creating edits that might potentially overlap. Any change that overlaps previous changes is ignored. Furthermore, a utility method is added that also drops selections associated with dropped changes (for transactions that are created from a selection). This is needed to avoid crashes when applying multicursor autocompletions, as the edit from a previous cursor may overlap with the next cursor/edit.
Diffstat (limited to 'helix-term/tests/test/helpers.rs')
0 files changed, 0 insertions, 0 deletions