# editor: Adjust offset of the opened jump target in the multibuffer \(\#23091\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 867c069b99c738af8549f0e9df5b7221f8cdf32e

Requested commit: 867c069b99c738af8549f0e9df5b7221f8cdf32e

Commit: 867c069b99c738af8549f0e9df5b7221f8cdf32e

Tree: 3131150583deae61c7e3caaecb5c01a484be655b

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
editor: Adjust offset of the opened jump target in the multibuffer (#23091)

This PR fixes an issue with jumping from multi_buffer to a file; namely,
the scroll offset of the opened buffer used to match the position within
the multibuffer, but it broke a while back. This is because we were
opening a buffer without providing the data about the origin scroll
offset.

Closes #ISSUE

Release Notes:

- Fixed a bug where the relative position of an excerpt within the
multibuffer was not accounted for while jumping to the buffer, causing
the clicked line to drastically change position on screen.
```

## Parents

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

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