# editor: Fix panic in inlay hint while padding \(\#36405\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d5711d44a5cda4bd9f76849ca3e4904a1aed7c75

Requested commit: d5711d44a5cda4bd9f76849ca3e4904a1aed7c75

Commit: d5711d44a5cda4bd9f76849ca3e4904a1aed7c75

Tree: 8ceeddb87eef9e55739bcb73897dbaef94a947db

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix panic in inlay hint while padding (#36405)

Closes #36247

Fix a panic when padding inlay hints if the last character is a
multi-byte character. Regressed in
https://github.com/zed-industries/zed/pull/35786.

Release Notes:

- Fixed a crash that could occur when an inlay hint ended with `...`.
```

## Parents

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

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