# text: Assert text anchor offset validity on construction \(\#38441\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a2c71d3d207c963f54a622f77a745d943075c02a

Requested commit: a2c71d3d207c963f54a622f77a745d943075c02a

Commit: a2c71d3d207c963f54a622f77a745d943075c02a

Tree: d776a6f85eea798f878946df9caa46167f5045b7

Author: Lukas Wirth

Committer: GitHub

## Message

```
text: Assert text anchor offset validity on construction (#38441)

Attempt to aid debugging some utf8 indexing issues

Release Notes:

- N/A

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
```

## Parents

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

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