gizak / termui

Golang terminal dashboard
MIT License
13.06k stars 783 forks source link

When WrapText is enabled, the computation of which rows to show is incorrect. #301

Open gumulaola opened 3 years ago

gumulaola commented 3 years ago

In function "WrapCells", utils.go, you had a declaration of "i". I‘m sure that you want to use it to save the count of line wrap to solve this issue, but you never used it. My suggestion is to have this function return "wrappedCells" as well as "i", so that you can handle "i" properly in function "Draw", in list.go.

image