# Make paste a separate undo transaction from preceding edits \(\#52003\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8cbcadf1962aafbf429f116222e172b2ffec94fa

Requested commit: 8cbcadf1962aafbf429f116222e172b2ffec94fa

Commit: 8cbcadf1962aafbf429f116222e172b2ffec94fa

Tree: f238c18d015dfdb99e1aa026bcf13b16ba525cb7

Author: Lukas Wirth

Committer: GitHub

## Message

```
Make paste a separate undo transaction from preceding edits (#52003)

When undoing a paste, it is really confusing when that actually also
removes what was type right before the paste if the paste happened fast
enough after.

Release Notes:

- Fixed undoing a paste sometimes also undoing edits right before the
paste
```

## Parents

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

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