# Remove versioned offset ranges from transactions and undo operations · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7c3421e041195f26b00f9342616a7bdb97baffd5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7c3421e041195f26b00f9342616a7bdb97baffd5

Requested commit: 7c3421e041195f26b00f9342616a7bdb97baffd5

Commit: 7c3421e041195f26b00f9342616a7bdb97baffd5

Tree: 3f0571bdaf1ff54367f8d36bf296567b8f671b53

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Remove versioned offset ranges from transactions and undo operations

Now, instead of using these versioned offset ranges, we locate the
fragments associated with a transaction using the transaction's
edit ids. To make this possible, buffers now store a new map called
`insertion_slices`, which lets you look up the ranges of insertions
that were affected by a given edit.

Co-authored-by: Antonio Scandurra <antonio@zed.dev>

```

## Parents

- [65fd943509d8913d8d2fe5e7f6f88db2044a83f5](https://git.cafe/gitcafe/zed/commit/65fd943509d8913d8d2fe5e7f6f88db2044a83f5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7c3421e041195f26b00f9342616a7bdb97baffd5?format=markdown)
