Removes unneeded comment
This commit is contained in:
parent
cda502fbb8
commit
4f9c8877b5
8
pages.go
8
pages.go
|
@ -67,14 +67,6 @@ func (p *Pages) Render(termHeight, termWidth int, color bool) []string {
|
||||||
pos := p.History[p.Position].ScrollPosition
|
pos := p.History[p.Position].ScrollPosition
|
||||||
prev := len(p.History[p.Position].WrappedContent)
|
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 {
|
if termWidth != p.History[p.Position].WrapWidth {
|
||||||
p.History[p.Position].WrapContent(termWidth, color)
|
p.History[p.Position].WrapContent(termWidth, color)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue