# Notify when pinning a tab even if the tab isn't moved \(\#31880\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 22d75b798e192290e931966daed00c28b391baef

Requested commit: 22d75b798e192290e931966daed00c28b391baef

Commit: 22d75b798e192290e931966daed00c28b391baef

Tree: ee12622bb113670f58b1ef28171ef98b3f9d2c25

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Notify when pinning a tab even if the tab isn't moved (#31880)

The optimization to not move a tab being pinned (when the destination
index is the same as its index) in
https://github.com/zed-industries/zed/pull/31871 caused a regression, as
we were no longer calling `cx.notify()` indirectly through `move_item`.
Thanks for catching this, @smitbarmase.

Release Notes:

- N/A
```

## Parents

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

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