mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Populate services clipboard with items of type NSFilenamesPboardType
Back when this code was written there was a lot of problems related to application expectations (especially for the copy clipboard), and that might have been why we did not put NSFilenamesPboardType on the (services) clipboard, but it seems strange as it’s the only type we actually declare support for.
This commit is contained in:
@@ -104,6 +104,8 @@ FSDataSource* DataSourceForURL (NSURL* anURL, NSUInteger someOptions)
|
||||
|
||||
if(servicesPboard)
|
||||
{
|
||||
if([paths count])
|
||||
[types addObject:NSFilenamesPboardType];
|
||||
if(string = [paths lastObject])
|
||||
[types addObject:NSStringPboardType];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user