diff options
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index 591b40d0..8b7b98ce 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -269,9 +269,9 @@ for(i=0; i<[newFiltered count]; i++) { if(dictMode) - item = NSArrayObjectAtIndex([newFiltered objectAtIndex:i], 0); + item = NSArrayObjectAtIndex(newFiltered, i); else - item = [NSArrayObjectAtIndex([newFiltered objectAtIndex:i], 0) objectForKey:@"display"]; + item = [NSArrayObjectAtIndex(newFiltered, i) objectForKey:@"display"]; // If space in suggestion add space to allowed input chars if(!spaceInSuggestion && [item rangeOfString:@" "].length) { [textualInputCharacters addCharactersInString:@" "]; |