# preview tabs: Fix tab selection getting out of sync \(\#10478\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7b01a29f5aa7ed55c839be23d5378a841a14884e

Requested commit: 7b01a29f5aa7ed55c839be23d5378a841a14884e

Commit: 7b01a29f5aa7ed55c839be23d5378a841a14884e

Tree: 43b4f270f3a3d4ebd46df24c7ba0e3b1de83877d

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
preview tabs: Fix tab selection getting out of sync (#10478)

There was an edge case where the project panel selection would not be
updated when opening a lot of tabs quickly using the preview tab
feature.
I spent way too long debugging this, thankfully @ConradIrwin spotted it
in like 5 minutes 🎉

Release Notes:

- N/A
```

## Parents

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

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