# clip FoldPoint earlier \(\#2982\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5c8ff055775465f5643490c7a33996bab673b84b

Requested commit: 5c8ff055775465f5643490c7a33996bab673b84b

Commit: 5c8ff055775465f5643490c7a33996bab673b84b

Tree: e168bf120795ba68b242e651e066cb66efab7ba8

Author: Conrad Irwin

Committer: GitHub

## Message

```
clip FoldPoint earlier (#2982)

fold_point_to_display_point calls to_offset on the fold point, which
panics if it hasn't been clipped.

https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1694850156370919

Release Notes:

- vim: Fix a crash when moving up/down in some circumstances.
```

## Parents

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

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

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