# Fix scrollbar markers for folded code \(\#11625\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ba25e371bec1a42f09c4053cf9850417344ec6cd

Requested commit: ba25e371bec1a42f09c4053cf9850417344ec6cd

Commit: ba25e371bec1a42f09c4053cf9850417344ec6cd

Tree: 029f885febff67c3825bb1ac6eea3f3f4f0b2598

Author: Andrew Lygin

Committer: GitHub

## Message

```
Fix scrollbar markers for folded code (#11625)

There're two errors in scrollbar markers in the presence of folded code:

1. Some markers are not displayed (when the marked row numbers are
greater than the total displayed rows count after folding).
2. Code folding / unfolding doesn't trigger markers repainting.

This PR fixes both problems.

Release Notes:

- Fixed scrollbar markers for folded code.

The second problem (markers are repainted after I move the cursor, not
after folding):


https://github.com/zed-industries/zed/assets/2101250/57ed563d-186d-4497-98ab-d4f946416726
```

## Parents

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

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