Commit 1d8a8a6
fix: Prev/Next responsiveness and scroll-into-view in hex search
Two fixes affecting the Prev button:
1. HexSearcher.FindBackward had an infinite loop when the search
reached chunkStart=0 with no valid match: chunkEnd was advanced to
`chunkStart + overlap` which on a zero start yields `overlap`, the
same value as the previous iteration. Break out once we've
processed the chunk anchored at offset 0.
2. HexViewControl.OnSelectionOffsetChanged only invalidated visuals
without scrolling. The auto-scroll path was wired to
SelectionLength only, so Next/Prev with an unchanged pattern
length never scrolled the match into view. Route both setters
through OnSelectionChanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1fcafa5 commit 1d8a8a6
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
| |||
0 commit comments