aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-05-29 09:11:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-13 09:53:37 +0000
commit497c31d9fc0babf02d2bfdfa2f2633ae80cb24f7 (patch)
tree7aff7d7560ff3c3fdb8065d9da570c5933dea2c5 /scripts
parentgrid: reflow: don’t trim trailing empty cells from logical lines (diff)
commands: scroll up: simplify viewport clamping logic
When scrolling the viewport up, we need to ensure we don’t go past the scrollback wrap around. This was previously done using “custom” logic that tried to calculate many rows away from the scrollback start the current viewport is. But this is *exactly* what grid_row_abs_to_sb() does, except it doesn’t account for uninitialized scrollback. So, copy the logic from grid_row_abs_to_sb(), but ensure scrollback start points to valid scrollback data. The maximum number of rows we’re allowed to scroll is now the same as the current viewport’s sb-relative coordinate. Maybe closes #1074
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions