UI: Cleanup ellipsis more.

Arg, silly me.
This commit is contained in:
Unknown W. Brackets committed 2021-09-25 11:46:00 -07:00
1 parent bbc83bcdab
commit 2f570481b7
2 files changed
+15

No files matched your search

+9
View File
@@ -98,6 +98,9 @@ bool WordWrapper::WrapBeforeWord() {
if (x_ + wordWidth_ > maxW_ && !hasEllipsis) {
AddEllipsis();
skipNextWord_ = true;
if ((flags_ & FLAG_WRAP_TEXT) == 0) {
scanForNewline_ = true;
}
}
}
return false;
@@ -250,6 +253,9 @@ void WordWrapper::Wrap() {
AppendWord(lastEllipsisIndex_, -1, false);
AddEllipsis();
skipNextWord_ = true;
if ((flags_ & FLAG_WRAP_TEXT) == 0) {
scanForNewline_ = true;
}
continue;
}
@@ -281,6 +287,9 @@ void WordWrapper::Wrap() {
AddEllipsis();
forceEarlyWrap_ = false;
skipNextWord_ = true;
if ((flags_ & FLAG_WRAP_TEXT) == 0) {
scanForNewline_ = true;
}
continue;
}
}