# Add check to prevent closing pinned items \(\#50333\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9d6208b2091061e88105a74d2b2993223381a7c8

Requested commit: 9d6208b2091061e88105a74d2b2993223381a7c8

Commit: 9d6208b2091061e88105a74d2b2993223381a7c8

Tree: e7e99b032dbff7fde8fdf4d9924dd1348a7f9a80

Author: Austin Cummings

Committer: GitHub

## Message

```
Add check to prevent closing pinned items (#50333)

Pinned items should not be closed when the close action is triggered.

Closes #50309

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed a bug where middle-clicking a pinned tab would close it.
```

## Parents

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

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