# edit prediction: Fix jump cursor position when scrolled \(\#24230\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b13498a5dd279a2eeb92a42b0ad996e85094e0c0

Requested commit: b13498a5dd279a2eeb92a42b0ad996e85094e0c0

Commit: b13498a5dd279a2eeb92a42b0ad996e85094e0c0

Tree: fae66063bece28f8ca2dd5717668e24727035187

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit prediction: Fix jump cursor position when scrolled (#24230)

We were looking up line layouts without subtracting start row so we
would get the wrong one when scrolled

Release Notes:

- N/A
```

## Parents

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

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