MCPcopy
hub / github.com/jesseduffield/lazygit / RenderForLineIndices

Method RenderForLineIndices

pkg/gui/patch_exploring/state.go:398–403  ·  view source on GitHub ↗
(includedLineIndices []int)

Source from the content-addressed store, hash-verified

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

Callers 1

GetContentToRenderMethod · 0.80

Calls 1

FormatViewMethod · 0.80

Tested by

no test coverage detected