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>
8a66d607f9Julius Marminge committed on 10/24/2026, 10:35:10 PMparentd3536a8
2 files changedLine totals unavailable