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:
parent
57ac381f74
commit
6c844bdc5f
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user