fixed: smart pasting did not work properly

This commit is contained in:
daboe01 committed 2017-08-29 15:11:29 +02:00
1 parent 70ee391b33
commit 72d96e9a3b
3 files changed
+17 -29

No files matched your search

+7
View File
@@ -33,6 +33,8 @@
@import "CPView.j"
@global CPStringPboardType
@global _CPSmartPboardType
@class CPAttributedString
@class _CPRTFParser
@@ -175,6 +177,11 @@ CPKernAttributeName = @"CPKernAttributeName";
return stringForPasting;
}
- (BOOL)_shouldUseSmartPasting
{
return parseInt([[CPPasteboard generalPasteboard] stringForType:_CPSmartPboardType], 10) > 0 || NO;
}
- (void)paste:(id)sender
{
var stringForPasting = [self _stringForPasting];