[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>
main
Christopher Snowhill 2022-07-24 19:35:57 -07:00
parent 5f87475f2d
commit 72350a8b4c
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:@"…"];
}