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

umputun / revdiff / 25546184661
90%

Build:
DEFAULT BRANCH: master
Ran 08 May 2026 08:44AM UTC
Jobs 1
Files 69
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

08 May 2026 08:43AM UTC coverage: 89.704% (-0.02%) from 89.724%
25546184661

push

github

web-flow
feat: decouple mouse wheel from diff cursor (#173)

* feat: decouple mouse wheel from diff cursor

wheel events on the diff pane now scroll the viewport only.
the diff cursor stays on its current logical line and is
pinned to the visible edge if scrolling pushes it off-screen.
matches less/vim mouse semantics.

before, every wheel notch advanced the cursor by the wheel
step and dragged the viewport along to keep the cursor row
stable. under trackpad momentum that felt automatic and
slightly inertial because each event re-rendered the diff to
move the cursor highlight. the new path skips the re-render
when the cursor stays in place, so plain scrolling is just a
viewport offset change.

* style: gofmt cleanup in test files

trim trailing newline in config_test.go and re-align struct
field paddings in compare_test.go to match gofmt output.
no behavior change.

* fix(review-loop): iteration 1 addressed 5 findings

- [major] app/ui/mouse.go:pinDiffCursorTo: fix cursor-invisible bug in wrap mode —
  overlap check now uses cursorTop (marker row) instead of cursorBottom; when the
  cursor line straddles the viewport top boundary, advance past the continuation
  rows using cursorBottom+1 so the next line marker is actually visible
- [major] site/docs.html:560: sync scroll-wheel description to match README and
  plugin reference docs (viewport-only behavior with cursor pinning)
- [minor] app/ui/mouse.go:scrollDiffViewportBy: fix godoc - "clamp boundary"
  replaced with accurate "clamped target equals current offset"
- [minor] app/ui/mouse_test.go: add WheelUp_PinsCursorToBottom (bottom-pin branch),
  WheelDown_NoopAtMaxOffset (maxOffset no-op), WheelInWrapMode_PinsToFirstVisibleLine
  (wrap-mode regression guard)

* fix(review-loop): final cleanup pass — addressed 1 test-gap finding

- [test-gap] app/ui/mouse_test.go: replace weak WheelInWrapMode_PinsToFirstVisibleLine
  test (did not exercise straddle branch) with two focused tests:
  WheelInWrapMode_CursorAbo... (continued)

36 of 42 new or added lines in 1 file covered. (85.71%)

9688 of 10800 relevant lines covered (89.7%)

3198.88 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
91.28
-1.76% app/ui/mouse.go
Jobs
ID Job ID Ran Files Coverage
1 25546184661.1 08 May 2026 08:44AM UTC 69
89.7
GitHub Action Run
Source Files on build 25546184661
  • Tree
  • List 69
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6f39f6b3 on github
  • Prev Build on master (#25536715294)
  • Next Build on master (#25546735100)
  • 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