(dl DiffLine, filename string, styles Styles, t theme.Theme, width int)
| 161 | } |
| 162 | |
| 163 | func renderDiffLine(dl DiffLine, filename string, styles Styles, t theme.Theme, width int) string { |
| 164 | switch dl.Type { |
| 165 | case LineHunkHeader: |
| 166 | return renderHunkLine(dl, styles, width) |
| 167 | default: |
| 168 | return renderCodeLine(dl, filename, styles, t, width) |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | func renderHunkLine(dl DiffLine, styles Styles, width int) string { |
| 173 | prefix := styles.DiffLineNum.Render(" ··· ") |
no test coverage detected