# editor: Prevent panics in \`BlockChunks\` if the block spans more than 128 lines \(\#38763\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9418a2f4bcb277b3992c2003e84e20687af7cc4b

Requested commit: 9418a2f4bcb277b3992c2003e84e20687af7cc4b

Commit: 9418a2f4bcb277b3992c2003e84e20687af7cc4b

Tree: c52f641053f59f7d1b66ec5056dce6e5960a361d

Author: Lukas Wirth

Committer: GitHub

## Message

```
editor: Prevent panics in `BlockChunks` if the block spans more than 128 lines (#38763)

Not an ideal fix, but a proper one will require restructuring the
iterator state (which would be easier if Rust had first class
generators)
Fixes ZED-1MB

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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