# debugger: Fix stack frame filter crash \(\#37555\) · gitcafe/zed

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

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

Visibility: public

Requested revision: caebd0cc4ddfd4a0838378d8ace632a92f682328

Requested commit: caebd0cc4ddfd4a0838378d8ace632a92f682328

Commit: caebd0cc4ddfd4a0838378d8ace632a92f682328

Tree: f88231140c50337e46b3dd357cdff84db6599071

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Fix stack frame filter crash (#37555)

The crash was caused by not accounting for the fact that a range of
collapse frames only counts as one entry. Causing the filter indices to
overshoot for indices after collapse frames (it was counting all
collapse frames instead of just one).

The test missed this because it all happened in one `cx.update` closure
and didn't render the stack frame list when the filter was applied. The
test has been updated to account for this.


Release Notes:

- N/A

Co-authored-by: Cole Miller <cole@zed.dev>
```

## Parents

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

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