From 72350a8b4c88770a59b2c59b0670a936c9351a6f Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 24 Jul 2022 19:35:57 -0700 Subject: [PATCH] [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 --- Playlist/PlaylistController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index 05a705f04..e315f404f 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -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:@"…"]; }