# Pop end row if the end is equal to the starting sticky row \(\#47314\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 901fe23e2541ed838ff041f1049467a131a71034

Requested commit: 901fe23e2541ed838ff041f1049467a131a71034

Commit: 901fe23e2541ed838ff041f1049467a131a71034

Tree: c10aae9e2c0656d6a1445996587776fbdce0c06f

Author: KyleBarton

Committer: GitHub

## Message

```
Pop end row if the end is equal to the starting sticky row (#47314)

Closes #47307

In markdown, the outline item for a heading actually ends on the same
row as the next outline item (see #47307 for the visual glitch). This
change makes it so that the end row calculation accounts for that, and
you don't have two different display points where content is potentially
scrolling out of view. Fixed visually:



https://github.com/user-attachments/assets/e0a7e57a-fd41-4484-87e9-ac3e51d0b927


Release Notes:

- Fixed a visual glitch with sticky scroll headers in markdown
```

## Parents

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

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