(n int)
| 224 | } |
| 225 | |
| 226 | func fmtLineNum(n int) string { |
| 227 | if n < 0 { |
| 228 | return " " |
| 229 | } |
| 230 | return fmt.Sprintf("%4d", n) |
| 231 | } |
| 232 | |
| 233 | // RenderNewFile renders file content as an all-added diff (for untracked files). |
| 234 | func RenderNewFile(content, filename string, styles Styles, t theme.Theme, width int) string { |
no outgoing calls