# Fix pinned tab becoming unpinned when dragged onto unpinned tab \(\#35539\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4417bfe30b73eb0607f2e9a2337fb8fc5494b9f4

Requested commit: 4417bfe30b73eb0607f2e9a2337fb8fc5494b9f4

Commit: 4417bfe30b73eb0607f2e9a2337fb8fc5494b9f4

Tree: 639e590a30f2132af48fe03d29310ce15a2f8006

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Fix pinned tab becoming unpinned when dragged onto unpinned tab (#35539)

Case A - Correct:


https://github.com/user-attachments/assets/2ab943ea-ca5b-4b6b-a8ca-a0b02072293e

Case B - Incorrect:


https://github.com/user-attachments/assets/912be46a-73b2-48a8-b490-277a1e89d17d

Case B - Fixed:


https://github.com/user-attachments/assets/98c2311d-eebc-4091-ad7a-6cf857fda9c3

Release Notes:

- Fixed a bug where dragging a pinned tab onto an unpinned tab wouldn't
decrease the pinned tab count
```

## Parents

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

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