mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Support using an absolute (image) path as mark identifier
This then uses the image found via this path.
This commit is contained in:
@@ -233,7 +233,7 @@ private:
|
||||
{
|
||||
gutterImages = gutterImages ?: [NSMutableDictionary new];
|
||||
|
||||
if(NSImage* image = [NSImage imageNamed:aName inSameBundleAsClass:[self class]])
|
||||
if(NSImage* image = [aName hasPrefix:@"/"] ? [[NSImage alloc] initWithContentsOfFile:aName] : [NSImage imageNamed:aName inSameBundleAsClass:[self class]])
|
||||
{
|
||||
CGFloat imageWidth = image.size.width;
|
||||
CGFloat imageHeight = image.size.height;
|
||||
|
||||
Reference in New Issue
Block a user