# editor: Log error instead of panic on index out of bounds for line layouts \(\#32953\) · gitcafe/zed

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

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

Visibility: public

Requested revision: aa9dacad285ef1010908edc8b75748e90ed5146e

Requested commit: aa9dacad285ef1010908edc8b75748e90ed5146e

Commit: aa9dacad285ef1010908edc8b75748e90ed5146e

Tree: 182507544000a3a339377efa8ba3076dc394da9c

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Log error instead of panic on index out of bounds for line layouts (#32953)

Closes #30191

`line_ix` should never exceed the bounds of `line_layouts`, but a panic
happens on out-of-bounds for this, which seems weird. I couldn’t
reproduce this panic at all. Since this is for displaying inline blame,
we now log an error if this occurs instead of panicking.

Release Notes:

- N/A
```

## Parents

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

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