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

umputun / revdiff / 24581133736
90%

Build:
DEFAULT BRANCH: master
Ran 17 Apr 2026 06:42PM UTC
Jobs 1
Files 57
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

17 Apr 2026 06:41PM UTC coverage: 88.374% (+0.01%) from 88.362%
24581133736

push

github

web-flow
fix(ui): keep wrap and annotation rows visible at viewport bottom (#118)

syncViewportToCursor compared only the cursor's top row to the viewport
bottom, so when the cursor sat on the last visible row with a logical line
taller than one visual row, the extra rows (wrap continuations under
--wrap, or multi-line annotation rows injected below the diff line)
rendered past the viewport bottom and were clipped.

Introduce cursorVisualRange/cursorVisualHeight to compute the cursor's
full visual extent via the existing hunkLineHeight / wrappedLineCount /
wrappedAnnotationLineCount helpers. syncViewportToCursor now scrolls
against the cursor's visual bottom, with a min(..., cursorTop) floor so
a logical line taller than the viewport keeps the cursor top anchored.
SetContent runs before SetYOffset so viewport.maxYOffset() reflects
post-mutation content length.

Also add syncViewportToCursor() to the editor-finished save path in
saveComment so a freshly saved multi-row annotation scrolls into view
when the cursor sits near the bottom.

Tests cover wrap-overflow, annotation-overflow, cursor-on-annotation
sub-line overflow, file-annotation overflow, cursor-taller-than-viewport
floor, editor-save line-level sync, and editor-save file-level GotoTop.

30 of 32 new or added lines in 2 files covered. (93.75%)

7054 of 7982 relevant lines covered (88.37%)

331.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.63
-0.12% app/ui/annotate.go
Jobs
ID Job ID Ran Files Coverage
1 24581133736.1 17 Apr 2026 06:42PM UTC 57
88.37
GitHub Action Run
Source Files on build 24581133736
  • Tree
  • List 57
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5a7d19ea on github
  • Prev Build on master (#24578021559)
  • Next Build on master (#24581238132)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc