free-coding-models 0.3.17 → 0.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,7 +110,7 @@ export function tintOverlayLines(lines, bgColor, terminalCols = null) {
110
110
  const panelWidth = terminalCols || OVERLAY_PANEL_WIDTH
111
111
  return lines.map((line) => {
112
112
  const text = String(line)
113
- const visibleWidth = stripAnsi(text).length
113
+ const visibleWidth = displayWidth(text)
114
114
  const padding = ' '.repeat(Math.max(0, panelWidth - visibleWidth))
115
115
  return bgColor(text + padding)
116
116
  })