Skip to content

Commit cd1c1ca

Browse files
committed
Merge pull request #31 from EZ-NET/FixAutoCompleteCrash
Fix autocomplete crash
2 parents aac5f88 + 6240dc5 commit cd1c1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SCXcodeSwitchExpander/DVTTextCompletionController+SCXcodeSwitchExpander.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ - (NSUInteger)matchingBracketLocationForOpeningBracketLocation:(NSUInteger)locat
321321
}];
322322
NSArray<IDEIndexSymbol*> *enumSymbols = [symbols objectsAtIndexes:enumSymbolIndexes];
323323

324-
for (NSInteger nameIndex = names.count - 2; nameIndex != -1; ++nameIndex) {
324+
for (NSInteger nameIndex = names.count - 2; nameIndex != -1; --nameIndex) {
325325
if (enumSymbols.count <= 1) {
326326
break;
327327
}

0 commit comments

Comments
 (0)