# Fix panic when scrolling in project diff \(\#25771\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eb4fad52df83ddc238620141cb09ac7296d5b4cc

Requested commit: eb4fad52df83ddc238620141cb09ac7296d5b4cc

Commit: eb4fad52df83ddc238620141cb09ac7296d5b4cc

Tree: dc8dae72de6cb27b153c9562c2398227e304c092

Author: Cole Miller

Committer: GitHub

## Message

```
Fix panic when scrolling in project diff (#25771)

It may happen that the column for the scroll anchor is nonzero, and the
adjustment we're doing here could result in an invalid point in that
case.

Release Notes:

- N/A

Co-authored-by: Max <max@zed.dev>
```

## Parents

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

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