Skip to content

Commit

Permalink
Fix a bug which could cause an exception while drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaran committed Dec 1, 2008
1 parent ebb9d8a commit 4ba0d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TerminalColours.m
Expand Up @@ -71,10 +71,10 @@ - (id)colourForKey:(NSString*)key
{
// redColor → vtRedColour – these are NSColor category methods
// added by Terminal which return the default colours
NSString* key = [NSString stringWithFormat:@"vt%c%@Color",
NSString* valueKey = [NSString stringWithFormat:@"vt%c%@Color",
[key characterAtIndex:0] + ('A' - 'a'),
[key substringWithRange:NSMakeRange(1, [key length] - 7)]];
colour = [NSColor valueForKey:key];
colour = [NSColor valueForKey:valueKey];
}
return colour;
}
Expand Down

0 comments on commit 4ba0d35

Please sign in to comment.