# Fix panic when dragging pinned item left in pinned region \(\#32263\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bbf3b20fc3042950476a51ecdffa0a26862a72b6

Requested commit: bbf3b20fc3042950476a51ecdffa0a26862a72b6

Commit: bbf3b20fc3042950476a51ecdffa0a26862a72b6

Tree: e2e1895ce44e3ebfe153782c6de45ec5bd420874

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Fix panic when dragging pinned item left in pinned region (#32263)

This was a regression with my recent fixes to pinned tabs. Dragging a
pinned tab left in the pinned region would still update the pinned tab
count, which would later cause an out-of-bounds later when it used that
value to index into a vec.

https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1749220447796559

Release Notes:

- Fixed a panic caused by dragging a pinned item to the left in the
pinned region
```

## Parents

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

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