mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Fix exception when finding all in untitled documents
Untitled documents have no path, so we were creating a dictionary with a nil object. The path isn’t actually used (we go via the identifier) so removing the potential path from the dictionary avoids the problem.
This commit is contained in:
@@ -396,7 +396,6 @@ NSString* const FFFindWasTriggeredByEnter = @"FFFindWasTriggeredByEnter";
|
||||
FFMatch* firstMatch = [matches firstObject];
|
||||
FFMatch* lastMatch = [matches lastObject];
|
||||
[documents addObject:@{
|
||||
@"path" : firstMatch.path,
|
||||
@"identifier" : [NSString stringWithCxxString:doc->identifier()],
|
||||
@"firstMatchRange" : [NSString stringWithCxxString:[firstMatch match].range],
|
||||
@"lastMatchRange" : [NSString stringWithCxxString:[lastMatch match].range],
|
||||
|
||||
Reference in New Issue
Block a user