Fixed a small edge case in TransportWindow title line ellipsizing.

This commit is contained in:
casey 2016-07-17 20:47:03 -07:00
parent fd637ba199
commit 979f4bb358

View File

@ -184,7 +184,7 @@ size_t writePlayingFormat(
/* if we're not at the last token, but there's not enough space
to show the next token, ellipsize now and bail out of the loop */
if (remaining - len < 3) {
if (remaining - len < 3 && it + 1 != tokens.end()) {
if (!ellipsized) {
value = text::Ellipsize(value, remaining - 3);
len = remaining;