diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-12-10 07:48:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-12-13 08:55:27 +0000 |
| commit | 65bd79b77d0acf3fcf6be1ecfe5a4a3ce2e1151a (patch) | |
| tree | 284c2b3958fe6a851e339e73c90bc0162e238f89 /scripts/benchmark.py | |
| parent | doc: remove duplicated ctrl+shift+w in foot(1) (diff) | |
term: reverse-scroll: fix crash when viewport ends up outside the (new) scrollback
If the viewport has been scrolled up, it is possible for a
reverse-scroll (rin) to cause the viewport to point to lines outside
the scrollback. This is an issue if the scrollback isn't full, since
in that case, the viewport will contain NULL lines. This will
potentially trigger assertions in a couple of different places.
Example backtrace:
#2 0x555555cd230c in bug ../../debug.c:44
#3 0x555555ad485e in grid_row_in_view ../../grid.h:83
#4 0x555555b15a89 in grid_render ../../render.c:3465
#5 0x555555b3b0ab in fdm_hook_refresh_pending_terminals ../../render.c:5165
#6 0x555555a74980 in fdm_poll ../../fdm.c:435
#7 0x555555ac2b85 in main ../../main.c:676
Detect when this happens, and force-move the viewport to ensure it is
valid.
Closes #2232
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions
