diff options
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index a17c3aac..42660be1 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -525,6 +525,7 @@ if(![newFiltered count]) { if(autoCompletionMode) { + [newFiltered release]; closeMe = YES; return; } else { @@ -532,6 +533,7 @@ if([[self filterString] hasSuffix:@"."]) { [theView setCompletionWasReinvokedAutomatically:YES]; [theView doCompletionByUsingSpellChecker:dictMode fuzzyMode:fuzzyMode autoCompleteMode:NO]; + [newFiltered release]; closeMe = YES; return; } else { @@ -539,6 +541,11 @@ } } } + if(autoCompletionMode && [newFiltered count] == 1 && [[[self filterString] lowercaseString] isEqualToString:[[[newFiltered objectAtIndex:0] objectForKey:@"display"] lowercaseString]]) { + [newFiltered release]; + closeMe = YES; + return; + } NSPoint old = NSMakePoint([self frame].origin.x, [self frame].origin.y + [self frame].size.height); |