(includedLineIndices []int)
| 396 | } |
| 397 | |
| 398 | func (s *State) RenderForLineIndices(includedLineIndices []int) string { |
| 399 | includedLineIndicesSet := set.NewFromSlice(includedLineIndices) |
| 400 | return s.patch.FormatView(patch.FormatViewOpts{ |
| 401 | IncLineIndices: includedLineIndicesSet, |
| 402 | }) |
| 403 | } |
| 404 | |
| 405 | func (s *State) PlainRenderSelected() string { |
| 406 | firstLineIdx, lastLineIdx := s.SelectedPatchRange() |
no test coverage detected