# Add test for \`pane: toggle pin tab\` \(\#31906\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1ed4647203a844b3494007a9bdce6b9586d5d2fb

Requested commit: 1ed4647203a844b3494007a9bdce6b9586d5d2fb

Commit: 1ed4647203a844b3494007a9bdce6b9586d5d2fb

Tree: f559f68efe8d0579e8d7b0c0f984e4af71b0962c

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Add test for `pane: toggle pin tab` (#31906)

Also adds the optimization to not move a tab being pinned when its
destination index is the same as its index.

Release Notes:

- N/A
```

## Parents

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

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