# Fix multibuffer initialization based on RHS state \(\#56058\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 675ed70f59483cfe7d07e0f90dc487ec02e65c68

Requested commit: 675ed70f59483cfe7d07e0f90dc487ec02e65c68

Commit: 675ed70f59483cfe7d07e0f90dc487ec02e65c68

Tree: c7e03ba0911a3729062148594e7d1229665be083

Author: Sathwik Chirivelli

Committer: GitHub

## Message

```
Fix multibuffer initialization based on RHS state (#56058)

This update modifies the initialization of the left-hand side
multibuffer in the SplittableEditor. It now checks if the right-hand
side multibuffer is a singleton and uses a
`MultiBuffer::without_headers` instead.


Before Screenshot:
<img width="1624" height="1030" alt="Screenshot 2026-05-07 at 7 30
16 PM"
src="https://github.com/user-attachments/assets/3d963703-309c-42e4-b2be-fe64bd9c0a06"
/>

After Screenshot:
<img width="1624" height="1030" alt="Screenshot 2026-05-07 at 7 32
48 PM"
src="https://github.com/user-attachments/assets/51668319-6a34-47df-b8b1-8bf58b86407e"
/>


Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)



Release Notes:
- Optimized multibuffer creation by conditionally using headers based on
RHS state.
```

## Parents

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

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