# fix\(web\): Enter at the end of a long wrapped file keeps the caret in view · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/8a66d607f9ade09f546767eeda8baf59d67cd35f)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 8a66d607f9ade09f546767eeda8baf59d67cd35f

Requested commit: 8a66d607f9ade09f546767eeda8baf59d67cd35f

Commit: 8a66d607f9ade09f546767eeda8baf59d67cd35f

Tree: a874698ff2e2e7dcce383ab6239565ff8dfdf083

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): Enter at the end of a long wrapped file keeps the caret in view

When an edit grew the line count by a digit (999 -> 1000), the patched
editor dropped every measured wrapped-row height, so offscreen rows fell
back to one line and the viewport jumped thousands of pixels above the
caret. Keep heights above the edit, as other line-count changes already
do; rows the wider gutter rewraps are remeasured when rendered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [d3536a85222449cf2b021321aa8c9aba865733af](https://git.cafe/pingdotgg/t3code/commit/d3536a85222449cf2b021321aa8c9aba865733af?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/8a66d607f9ade09f546767eeda8baf59d67cd35f?format=markdown)
