(line string, width int)
| 660 | } |
| 661 | |
| 662 | func renderListLine(line string, width int) string { |
| 663 | if width <= 0 { |
| 664 | return line |
| 665 | } |
| 666 | line = ansi.Truncate(line, width, "") |
| 667 | return lipgloss.NewStyle().Width(width).Render(line) |
| 668 | } |
| 669 | |
| 670 | func truncateLines(content string, width int) string { |
| 671 | if width <= 0 { |
no test coverage detected