diff --git a/pages.go b/pages.go index 01cd1e0..f3d761d 100644 --- a/pages.go +++ b/pages.go @@ -67,14 +67,6 @@ func (p *Pages) Render(termHeight, termWidth int, color bool) []string { pos := p.History[p.Position].ScrollPosition prev := len(p.History[p.Position].WrappedContent) - // TODO figure out a way to only do this when needed - // it is horribly slow to do this every render. - // - // Current thought is add a "WrapWidth" to each page - // and compare the WrapWidth against the width being - // passed in here. If it is different then go through - // all of that. Otherwise, just send the already wrapped - // data. if termWidth != p.History[p.Position].WrapWidth { p.History[p.Position].WrapContent(termWidth, color) }