Fix incorrect overflow detection when --wrap is set

Fix #4083
This commit is contained in:
Junegunn Choi 2024-11-12 00:24:31 +09:00
parent 20c7dcfbca
commit 3ec035c68b
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -306,5 +306,5 @@ func (chars *Chars) Lines(multiLine bool, maxLines int, wrapCols int, wrapSignWi
}
}
return wrapped, false
return wrapped, overflow
}