# Fix bugs around pinned tabs \(\#31871\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ab6125ddde518c0c021ecae54f64d86b8c4f5008

Requested commit: ab6125ddde518c0c021ecae54f64d86b8c4f5008

Commit: ab6125ddde518c0c021ecae54f64d86b8c4f5008

Tree: 1593432451ee95adf2740c41f3fed4d3fd47ad7a

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Fix bugs around pinned tabs (#31871)

Closes https://github.com/zed-industries/zed/issues/31870

Release Notes:

- Allowed opening 1 more item if `n` tabs are pinned, where `n` equals
`max_tabs` count.
- Fixed a bug where pinned tabs would eventually be closed out when
exceeding the `max_tabs` count.
- Fixed a bug where a tab could be lost when pinning a tab while at the
`max_tabs` count.
- Fixed a bug where pinning a tab when already at the `max_tabs` limit
could cause other tabs to be incorrectly closed.
```

## Parents

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

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