Fix text wrap edge case

This commit is contained in:
iota97 committed 2021-09-24 23:20:38 +02:00
1 parent a9f8608d62
commit a83003b228
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ void WordWrapper::AppendWord(int endIndex, bool addNewline) {
}
// This will include the newline.
if (x_ < maxW_) {
if (x_ <= maxW_) {
out_.append(str_ + lastWordStartIndex, str_ + endIndex);
} else {
scanForNewline_ = true;