# Merge pull request \#543 from zed-industries/fix-closing-items · gitcafe/zed

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

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

Visibility: public

Requested revision: 34bbc05cec5aaac9c7539c3204eaa289c904b49b

Requested commit: 34bbc05cec5aaac9c7539c3204eaa289c904b49b

Commit: 34bbc05cec5aaac9c7539c3204eaa289c904b49b

Tree: 8ece563fcba4774ad10bdf8fbaf8351413c31c2d

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Merge pull request #543 from zed-industries/fix-closing-items

Ensure `active_item_index` doesn't go off the end when closing items
```

## Parents

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

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

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