# Avoid crashes when laying out lines containing byte order marks · gitcafe/zed

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

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

Visibility: public

Requested revision: 56354c76230e1f79219cf4fef6608eb76cf37ea7

Requested commit: 56354c76230e1f79219cf4fef6608eb76cf37ea7

Commit: 56354c76230e1f79219cf4fef6608eb76cf37ea7

Tree: 062efd56084914d5435ce5a604f988a4db8f821b

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Avoid crashes when laying out lines containing byte order marks

This solution isn't perfect and we'll probably have layout bugs with these lines, but this prevents us from triggering undefined behavior.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

```

## Parents

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

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