# Fix panic when providing 0 to ilog10 in line number length logic \(\#26844\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c220fb387d0b2bd846ae10e7060c786cfbfc7e54

Requested commit: c220fb387d0b2bd846ae10e7060c786cfbfc7e54

Commit: c220fb387d0b2bd846ae10e7060c786cfbfc7e54

Tree: 5bc33684cf427510b65f219aa1fb79884b33b066

Author: Michael Sloan

Committer: GitHub

## Message

```
Fix panic when providing 0 to ilog10 in line number length logic (#26844)

Introduced in #24428

Release Notes:

- N/A
```

## Parents

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

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