# zeta2: Compute smaller edits \(\#38786\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4353b61155dbb7e0ea3513278b0e61dfcefa6b28

Requested commit: 4353b61155dbb7e0ea3513278b0e61dfcefa6b28

Commit: 4353b61155dbb7e0ea3513278b0e61dfcefa6b28

Tree: 8ae15d4763fd31544b27053e8a045ef4f352a143

Author: Agus Zubiaga

Committer: GitHub

## Message

```
zeta2: Compute smaller edits (#38786)

The new cloud endpoint returns structured edits, but they may include
more of the input excerpt than what we want to display in the preview,
so we compute a smaller diff on the client side against the snapshot.

Release Notes:

- N/A
```

## Parents

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

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