mirror of https://github.com/rivo/tview.git
Fixed off-by-one error in TextView which led to line-trailing tags be moved to the next line. Fixes #336
This commit is contained in:
parent
c6236f4421
commit
5bbae91e1e
|
@ -672,7 +672,7 @@ func (t *TextView) reindexBuffer(width int) {
|
|||
}
|
||||
|
||||
// Is the next tag in range?
|
||||
if tagIndex < 0 || minPos >= tagEnd+remainingLength {
|
||||
if tagIndex < 0 || minPos > tagEnd+remainingLength {
|
||||
break // No. We're done with this line.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue