Skip to content

Commit

Permalink
Merge pull request #31 from EZ-NET/FixAutoCompleteCrash
Browse files Browse the repository at this point in the history
Fix autocomplete crash
  • Loading branch information
stefanceriu committed Apr 26, 2016
2 parents aac5f88 + 6240dc5 commit cd1c1ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ - (NSUInteger)matchingBracketLocationForOpeningBracketLocation:(NSUInteger)locat
}];
NSArray<IDEIndexSymbol*> *enumSymbols = [symbols objectsAtIndexes:enumSymbolIndexes];

for (NSInteger nameIndex = names.count - 2; nameIndex != -1; ++nameIndex) {
for (NSInteger nameIndex = names.count - 2; nameIndex != -1; --nameIndex) {
if (enumSymbols.count <= 1) {
break;
}
Expand Down

0 comments on commit cd1c1ca

Please sign in to comment.