()
| 155 | } |
| 156 | |
| 157 | func (d *DiffViewer) maxOffset() int { |
| 158 | if len(d.lines) <= d.height { |
| 159 | return 0 |
| 160 | } |
| 161 | return len(d.lines) - d.height |
| 162 | } |
| 163 | |
| 164 | // Render renders the diff view. |
| 165 | func (d *DiffViewer) Render() string { |
no outgoing calls
no test coverage detected