diff options
author | Bibiko <bibiko@eva.mpg.de> | 2012-01-05 19:12:52 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2012-01-05 19:12:52 +0000 |
commit | ef58dcc476f4732f3b3baa32486c8be504bbd242 (patch) | |
tree | 56b9efca78fe38f71506057219390012df4659cc | |
parent | d4a0235ca4a224ce0c79d8b17d18cab27167bf78 (diff) | |
download | sequelpro-ef58dcc476f4732f3b3baa32486c8be504bbd242.tar.gz sequelpro-ef58dcc476f4732f3b3baa32486c8be504bbd242.tar.bz2 sequelpro-ef58dcc476f4732f3b3baa32486c8be504bbd242.zip |
• removed setting of textColor after syntax hiliting
-rw-r--r-- | Source/SPTextView.m | 11 |
1 files changed, 0 insertions, 11 deletions
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]]; |