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

umputun / revdiff / 24262664779

10 Apr 2026 08:26PM UTC coverage: 88.146% (+0.1%) from 88.042%
24262664779

push

github

web-flow
feat(ui): add horizontal scroll overflow indicators (#89)

* feat(ui): add horizontal scroll overflow indicators

Show `«` and `»` markers at the edges of truncated diff lines in
unwrapped mode so users can tell when content extends off-screen.
The right indicator is placed flush against the pane border with a
leading space separator, extending 1 col beyond the normal cut width
into the pane's right padding column. Indicators blend with the
line's background (add/remove/modify/context) and use muted fg for
visibility; no-colors mode falls back to reverse video.

* fix(ui): address copilot review findings on scroll indicators

- correct narrow-viewport fallback threshold in godoc: cutWidth ≤ 2
  for dual overflow (was incorrectly ≤ 3)
- scrollIndicatorANSI now only emits fg/bg reset sequences when it
  actually set them, preserving inherited pane colors when lineBg
  is empty or Muted is unset
- reword "always truncates" godoc to clarify the cutWidth ≤ 0 early
  return case
- add regression test for the empty-lineBg no-reset behavior

86 of 89 new or added lines in 2 files covered. (96.63%)

5681 of 6445 relevant lines covered (88.15%)

416.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.93
/app/ui/diffview.go


Source Not Available

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