// SetLines updates the pager text lines.
SetLines updates the pager text lines.
// SetLines updates the pager text lines .
func (pg *Pager) SetLines(lines []StyledText) {
	nlines := pg.nlines()
	pg.lines = lines
	if pg.index+nlines-1 >= len(pg.lines) {
		pg.index = len(pg.lines) - nlines
		if pg.index <= 0 {
			pg.index = 0
		}
	}
	pg.dirty = true
}
func ( pg * Pager ) SetLines ( lines [ ] StyledText ) { nlines := pg . nlines ( ) pg . lines = lines if pg . index + nlines - 1 >= len ( pg . lines ) { pg . index = len ( pg . lines ) - nlines if pg . index <= 0 { pg . index = 0 } } pg . dirty = true }
SetLines updates the pager text lines.
SetLines updates the pager text lines .