# Limit editor rendering to visible clipped rows \(\#58132\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fd93a53c1702dbf4c28c4b23699e9e0cf56c893a

Requested commit: fd93a53c1702dbf4c28c4b23699e9e0cf56c893a

Commit: fd93a53c1702dbf4c28c4b23699e9e0cf56c893a

Tree: ba265363bd60cc686545105d01141441230cb517

Author: Lukas Wirth

Committer: GitHub

## Message

```
Limit editor rendering to visible clipped rows (#58132)

Editor prepaint previously used the full parent content mask height when
deciding which rows to lay out, while only accounting for top clipping.
Embedded, content-sized editors in agent tool cards could therefore ask
the display map to highlight rows below the editor's visible
intersection with the list viewport. Compute the vertical intersection
between the editor bounds and the content mask instead, so highlighted
chunks and custom highlight endpoints are built only for rows that can
actually be painted.

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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