# Don't generate invalid ranges for C code \(\#13183\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0af6e442a7cc9801af62cba5713310f8736509e1

Requested commit: 0af6e442a7cc9801af62cba5713310f8736509e1

Commit: 0af6e442a7cc9801af62cba5713310f8736509e1

Tree: 26f7e1b41161e8d663528ba53e776389415c2d3b

Author: Conrad Irwin

Committer: GitHub

## Message

```
Don't generate invalid ranges for C code (#13183)

Fixes: #13128

Release Notes:

- Fixed a panic when editing C code
([#13128](https://github.com/zed-industries/zed/issues/13128)).
```

## Parents

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

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