# editor: Deduplicate sticky header rows \(\#52844\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3a6faf2b4a65deb6e8e2c38fce6f6e8babe76159

Requested commit: 3a6faf2b4a65deb6e8e2c38fce6f6e8babe76159

Commit: 3a6faf2b4a65deb6e8e2c38fce6f6e8babe76159

Tree: a749d56df170e854505511140e4861cd803e8730

Author: Tim Vermeulen

Committer: GitHub

## Message

```
editor: Deduplicate sticky header rows (#52844)

Fixes a bug that caused duplicate sticky header rows to appear if
multiple outline items start on the same row.

Sort of addresses #52722, although arguably the real issue there is that
duplicate outline items are being created in the first place.

Before:


https://github.com/user-attachments/assets/7941cbe8-9b62-470c-b475-f08f2f20fac6

After:


https://github.com/user-attachments/assets/c4e291ea-6414-483f-8ff7-3d89d10000b6

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed a bug that caused duplicate sticky header rows to appear if
multiple outline items start on the same row.
```

## Parents

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

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