From 4f9c8877b504eedf8f1607cb83372ba4bb084d45 Mon Sep 17 00:00:00 2001 From: sloum Date: Sat, 15 Feb 2020 10:44:41 -0800 Subject: [PATCH] Removes unneeded comment --- pages.go | 8 -------- 1 file changed, 8 deletions(-) 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) }