Merge pull request #3201 from daboe01/cptexctview-smartpaste-fix

fixed: smartpaste crash
This commit is contained in:
daboe01 authored and GitHub committed 2026-03-13 16:04:15 +01:00
commit 9f092a3c2e
1 file changed
+3
+3
View File
@@ -475,6 +475,9 @@ var kDelegateRespondsTo_textShouldBeginEditing
if (!stringForPasting)
return;
if (![stringForPasting isKindOfClass:[CPAttributedString class]])
stringForPasting = [[CPAttributedString alloc] initWithString:stringForPasting attributes:nil];
var shouldUseSmartPasting = [self _shouldUseSmartPasting];
if (shouldUseSmartPasting)