[Playlist View] Change truncation behavior a bit

Change the truncation behavior to only truncate if the length exceeds
1024 code points.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
xcode15
Christopher Snowhill 2022-07-24 19:35:57 -07:00
parent 360464ceec
commit 4e24c5b829
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ static void *playlistControllerContext = &playlistControllerContext;
}
NSString *cellTextTruncated = cellText;
if([cellTextTruncated length] > 1023) {
if([cellTextTruncated length] > 1024) {
cellTextTruncated = [cellTextTruncated substringToIndex:1023];
cellTextTruncated = [cellTextTruncated stringByAppendingString:@"…"];
}