Skip to content
Snippets Groups Projects
Commit 728390c9 authored by George Nachman's avatar George Nachman
Browse files

Allow services that receive text input if up to 10k lines are selected. There...

Allow services that receive text input if up to 10k lines are selected. There has to be a limit because services grab the contents before you know they're needed, at the time the context menu opens. Issue 6218
parent ba70b4ba
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5524,7 +5524,7 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
NSSet *acceptedReturnTypes = [NSSet setWithArray:@[ (NSString *)kUTTypeUTF8PlainText,
NSStringPboardType ]];
NSSet *acceptedSendTypes = nil;
if (self._haveShortSelection) {
if ([_selection hasSelection] && [_selection length] <= [_dataSource width] * 10000) {
acceptedSendTypes = acceptedReturnTypes;
}
if ((sendType == nil || [acceptedSendTypes containsObject:sendType]) &&
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment