TextView now reindexes only on width changes if wrapping is enabled.

This commit is contained in:
Oliver 2018-06-09 22:35:48 +02:00
parent 1ee0c559cc
commit 6ffb56ee2a
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ func (t *TextView) Draw(screen tcell.Screen) {
t.pageSize = height
// If the width has changed, we need to reindex.
if width != t.lastWidth {
if width != t.lastWidth && t.wrap {
t.index = nil
}
t.lastWidth = width