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

lunarmodules / terminal.lua / 23298583630

19 Mar 2026 02:00PM UTC coverage: 88.064% (-0.03%) from 88.098%
23298583630

push

github

Tieske
fix(progress): use display-column width in ticker for UTF-8 correctness

The ticker function used utf8.len (character count) and utf8sub
(character-based slicing) to compute frame widths and extract frames.
This produced incorrect frame sizes for double-width characters (CJK,
emoji) where 1 character occupies 2 display columns.

Replace with utf8swidth (display-column count) and utf8sub_col
(column-based slicing) so each ticker frame is exactly `width`
display columns regardless of character width. Remove unused utf8
import.

0 of 5 new or added lines in 1 file covered. (0.0%)

2 existing lines in 2 files now uncovered.

2597 of 2949 relevant lines covered (88.06%)

1668.18 hits per line

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

70.24
/src/terminal/progress.lua


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