• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 31346483953
92%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2026 01:13AM UTC
Jobs 1
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2026 01:12AM UTC coverage: 90.11% (+0.02%) from 90.092%
31346483953

push

github

web-flow
fix(ui): bound page scroll so paging cannot skip unrendered rows (#312)

* fix(ui): stop paging from scrolling past unrendered rows

moveDiffCursorDownBy/UpBy walked the cursor until its visual delta reached
rows, then scrolled the viewport by that actual delta. One cursor step can
span many rows through hunkLineHeight (wrap continuations, annotation
blocks), so a tall line at the page boundary advanced the viewport further
than a page and skipped rows that were never displayed.

both walks now undo the step that carries the delta past rows, restoring
diffCursor and cursorOnAnnotation and breaking immediately. The first step
stays exempt so a line taller than the whole viewport remains reachable,
which still scrolls by its full height.

* fix(ui): gate the paging rollback on a useful scroll, not on having moved

the rollback fired whenever any step had been taken, so a block taller than the
page ahead of the cursor collapsed pgdown to a one-row scroll: the annotation
flip consumed one row, the next step overshot, and the walk rolled back to that
single row. The screen looked unchanged and the following press took the same
oversized step anyway.

worthRollingBack requires half a page of walked budget before undoing a step.
A block with no selectable position inside it is now stepped over in one press
as before, while an ordinary tall line at the page boundary still rolls back.

adds the up-direction case, which had no test - the previous pgup assertion was
satisfied by construction and held with the rollback deleted - and corrects the
down-walk comment, which named the line stepped onto when the height comes from
the line stepped off.

* docs: say what makes the first paging step exempt, not that it passes

worthRollingBack returns false for walked == 0, so 'a first step always
passes' read as 'returns true' directly above the return statement. State
the mechanism instead.

11516 of 12780 relevant lines covered (90.11%)

3143.18 hits per line

Coverage Regressions

Lines Coverage ∆ File
22
96.41
0.13% app/ui/diffnav.go
Jobs
ID Job ID Ran Files Coverage
1 31346483953.1 10 Aug 2026 01:13AM UTC 79
90.11
GitHub Action Run
Source Files on build 31346483953
  • Tree
  • List 79
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 306209cb on github
  • Prev Build on master (#30982406980)
  • Next Build on master (#31348791390)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc