# pane: When opening a buffer, actually scroll to the selected tab\. \(\#3306\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 81cc6e84b7f88ca9fe39f8d5fb1e7a2e75c4309f

Requested commit: 81cc6e84b7f88ca9fe39f8d5fb1e7a2e75c4309f

Commit: 81cc6e84b7f88ca9fe39f8d5fb1e7a2e75c4309f

Tree: e0e06561ee49596d1287ffec460d6e79269bb427

Author: Kirill Bulatov

Committer: GitHub

## Message

```
pane: When opening a buffer, actually scroll to the selected tab.  (#3306)

Previously it might've reused a shared state.

Deals with https://github.com/zed-industries/community/issues/2262 also
fixes influencer's feedback.

No gpui2 port, due to 0 scrollable functionality in it yet.

Release Notes:

- Fixed tabs not being scrolled to on buffer (re)open
(https://github.com/zed-industries/community/issues/2262)
```

## Parents

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

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

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