diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index c75df7b3d..894390de2 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -2851,7 +2851,12 @@ var _CPCopyPlaceholder = '-'; } var nativeString = nativeClipboard.getData('text/plain'); - [currentFirstResponder _pasteString:nativeString || [pasteboard stringForType:CPStringPboardType] || '']; + + // Use setTimeout to prevent flickering + setTimeout(function() + { + [currentFirstResponder _pasteString:nativeString || [pasteboard stringForType:CPStringPboardType] || '']; + }, 20); }; // COPY handler @@ -2894,7 +2899,11 @@ var _CPCopyPlaceholder = '-'; nativeClipboard.setData('text/rtf', rtfForPasting); // Then, perform the delete part of the cut operation in the text view - [currentFirstResponder deleteBackward:self]; + // Use setTimeout to prevent flickering + setTimeout(function() + { + [currentFirstResponder deleteBackward:self]; + }, 20); }; #endif }