aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-19 09:41:22 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-19 09:41:22 +0000
commit83d961abc1f551a44ca81bb0f8c4281e918c0f5f (patch)
tree9b664be929534c9f0231828db45677a87e29ffd3 /Source/SPNarrowDownCompletion.m
parent515e93007d444c33ca82f7c43b76cf8c228cb9d6 (diff)
downloadsequelpro-83d961abc1f551a44ca81bb0f8c4281e918c0f5f.tar.gz
sequelpro-83d961abc1f551a44ca81bb0f8c4281e918c0f5f.tar.bz2
sequelpro-83d961abc1f551a44ca81bb0f8c4281e918c0f5f.zip
• added support to drag&drop textClipping files to Custom Query Editor and to editSheet
• fixed tiny issue for narrow-down completion
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r--Source/SPNarrowDownCompletion.m4
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:@" "];