Permalink
Browse files

Fix autocomplete crash #30

  • Loading branch information...
es-kumagai committed Apr 26, 2016
1 parent aac5f88 commit 6240dc52c2279eb9a8f24a9e4e4d0ae0ca68c78c
Showing with 1 addition and 1 deletion.
  1. +1 −1 SCXcodeSwitchExpander/DVTTextCompletionController+SCXcodeSwitchExpander.m
@@ -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;
}

0 comments on commit 6240dc5

Please sign in to comment.