From b966c8cb0b1e4c6a635454a417a4e3fd0c87fe3b Mon Sep 17 00:00:00 2001 From: daboe01 Date: Fri, 9 Dec 2016 21:35:42 +0100 Subject: [PATCH] formatting --- AppKit/CPTextView/CPTextView.j | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 2251851e0..467618a58 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -2502,9 +2502,7 @@ var _CPCopyPlaceholder = '-'; [pasteboard declareTypes:[CPRTFPboardType] owner:nil]; [pasteboard setString:richtext forType:CPRTFPboardType]; - // prevent dom-flickering (necessary only in FF) - var currentFirstResponder = [[CPApp keyWindow] firstResponder]; - [currentFirstResponder insertText:[[_CPRTFParser new] parseRTF:richtext]] + [[[CPApp keyWindow] firstResponder] insertText:[[_CPRTFParser new] parseRTF:richtext]] return false; }