From 3a5ac9df109613a025adc15095ad98619598564a Mon Sep 17 00:00:00 2001 From: daboe01 Date: Thu, 26 Feb 2015 05:53:37 +0100 Subject: [PATCH] formatting --- AppKit/CPTextView/CPTextView.j | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index cc4d0b932..b9bd2c38f 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -213,17 +213,14 @@ var kDelegateRespondsTo_textShouldBeginEditing if (_copySelectionGranularity > 0) { if (![self _isCharacterAtIndex:MAX(0, _selectionRange.location - 1) granularity:_copySelectionGranularity]) - { [self insertText:" "]; - } } [super paste:sender]; + if (_copySelectionGranularity > 0) { if (![self _isCharacterAtIndex:CPMaxRange(_selectionRange) granularity:_copySelectionGranularity]) - { [self insertText:" "]; - } } }