From ef58dcc476f4732f3b3baa32486c8be504bbd242 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 5 Jan 2012 19:12:52 +0000 Subject: =?UTF-8?q?=E2=80=A2=20removed=20setting=20of=20textColor=20after?= =?UTF-8?q?=20syntax=20hiliting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTextView.m | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'Source') diff --git a/Source/SPTextView.m b/Source/SPTextView.m index b32afa5b..9f662f0b 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -2894,17 +2894,6 @@ NSInteger _alphabeticSort(id string1, id string2, void *reverse) } - // set current textColor to the color of the caret's position - 1 - // to try to suppress writing in normalColor before syntax highlighting - NSUInteger ix = [self selectedRange].location; - if(ix > 1) { - NSMutableDictionary *typeAttr = [NSMutableDictionary dictionary]; - [typeAttr setDictionary:[self typingAttributes]]; - NSColor *c = [textStore attribute:NSForegroundColorAttributeName atIndex:ix-1 effectiveRange:nil]; - if(c) [typeAttr setObject:c forKey:NSForegroundColorAttributeName]; - [self setTypingAttributes:typeAttr]; - } - // [textStore endEditing]; [self setNeedsDisplayInRect:[self bounds]]; -- cgit v1.2.3