Removes unneeded comment

This commit is contained in:
sloum 2020-02-15 10:44:41 -08:00
parent cda502fbb8
commit 4f9c8877b5
1 changed files with 0 additions and 8 deletions

View File

@ -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)
}