Permalink
Browse files

Fix a bug which could cause an exception while drawing

  • Loading branch information...
1 parent ebb9d8a commit 4ba0d35095037ac43a0c9286e30301c3ea669d0b @ciaran ciaran committed Dec 1, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 TerminalColours.m
View
@@ -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;
}

0 comments on commit 4ba0d35

Please sign in to comment.