diff options
| author | blasty <peter@haxx.in> | 2026-07-24 15:48:19 +0200 |
|---|---|---|
| committer | blasty <peter@haxx.in> | 2026-07-24 15:48:19 +0200 |
| commit | e5ce6d2b78c8b53a570f13be6de32502eeb5bfff (patch) | |
| tree | f0f7054618d852e94f35e46c1d24817e6c831311 /server/patch_server.py | |
| parent | hex: click to place the byte cursor (hex + ascii panes) (diff) | |
| download | ida-tui-e5ce6d2b78c8b53a570f13be6de32502eeb5bfff.tar.gz ida-tui-e5ce6d2b78c8b53a570f13be6de32502eeb5bfff.tar.xz ida-tui-e5ce6d2b78c8b53a570f13be6de32502eeb5bfff.zip | |
hex: cursor follows the scroll (stays visible on wheel/scrollbar)
Override watch_scroll_y so a viewport scroll drags the byte cursor along: when
the rounded scroll changes, clamp the cursor's row into the visible range
[top, top+height) keeping its column, so it rides the nearest edge instead of
being left off-screen. No feedback loop -- key-nav's _scroll_to_cursor already
puts the cursor in view (clamp is then a no-op), and HexView.Moved only updates
the status line. Pairs with the click-to-place support.
Pilot `hex` scenario updated: after a scroll the cursor must now be within the
visible rows (was: asserted it stayed put). 9/9 hex checks pass.
Diffstat (limited to 'server/patch_server.py')
0 files changed, 0 insertions, 0 deletions
