1
0
mirror of https://github.com/rivo/tview.git synced 2025-04-28 13:48:53 +08:00

Fixed calculation of widest line.

This commit is contained in:
Oliver 2023-10-07 20:37:32 +02:00
parent 57ac381f74
commit 6c844bdc5f

View File

@ -1310,6 +1310,10 @@ func (t *TextArea) extendLines(width, maxLines int) {
break break
} }
} }
if lineWidth > t.widestLine {
t.widestLine = lineWidth
}
} }
// truncateLines truncates the trailing lines of the [TextArea.lineStarts] // truncateLines truncates the trailing lines of the [TextArea.lineStarts]