diff options
| author | Mofan552 <71218481+mofan552@users.noreply.github.com> | 2026-07-17 18:06:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-17 11:06:57 +0200 |
| commit | 6b967baacc86cb24b3fd55e445c833b28f733c0c (patch) | |
| tree | ecab55939483551ba4d88fc2e7f191887028226e /zellij-integration-tests/tests/snapshots/resize__resize_decrease_up.snap | |
| parent | docs(changelog): allow disabling ctrl-mouse-scroll (diff) | |
| download | sl0ppij-6b967baacc86cb24b3fd55e445c833b28f733c0c.tar.gz sl0ppij-6b967baacc86cb24b3fd55e445c833b28f733c0c.tar.xz sl0ppij-6b967baacc86cb24b3fd55e445c833b28f733c0c.zip | |
fix(grid): scroll the region when a line wraps at its bottom margin (#5357)
* fix(grid): scroll the region when a line wraps at its bottom margin
Wrapping at the bottom margin of a DECSTBM scroll region used to move
the cursor below the region instead of scrolling it, after which no
subsequent output could scroll through the region (or reach scrollback
for top-anchored regions) anymore.
line_wrap() now mirrors add_canonical_line(): the region scrolls up one
line, the cursor stays on its bottom row, and the new row is a wrapped
(non-canonical) row. Top-anchored partial regions preserve the
scrolled-off line in scrollback (#4941), other regions discard it, and
the alternate screen never transfers.
* docs(changelog): line wrap scroll region fix
* fix(grid): keep hyperlink tracking aligned when wrap scrolls an inner region
When a line wraps at the bottom of a scroll region that does not start
at the top of the screen, the region's rows shift up but the hyperlink
tracker's recorded positions did not, so a URL wrapping there lost its
clickable anchors. Offset the tracked positions for the rows inside the
region, the way the full-screen and top-anchored paths already do via
offset_cursor_lines.
* refactor shared logic and adjust changelog
---------
Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'zellij-integration-tests/tests/snapshots/resize__resize_decrease_up.snap')
0 files changed, 0 insertions, 0 deletions
