# Fix infinite loop when inferring outline body range \(\#58536\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 61cdd8d180c4271c36caa76c9e8086d9459cdb2f

Requested commit: 61cdd8d180c4271c36caa76c9e8086d9459cdb2f

Commit: 61cdd8d180c4271c36caa76c9e8086d9459cdb2f

Tree: 8882c560acdac34ab33e8526951d4d4d817ca503

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
Fix infinite loop when inferring outline body range (#58536)

This test would cause an infinite loop without the fix.

Closes #53298 and #54069

Release Notes:

- Fixed high CPU usage when using Zeta in some cases (thanks
@clupprich!)
```

## Parents

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

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