aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r--Source/SPNarrowDownCompletion.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index 3b108de6..032e80b3 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -34,6 +34,7 @@
#import "ImageAndTextCell.h"
#import "SPConstants.h"
#import "RegexKitLite.h"
+#import "CMTextView.h"
#include <tgmath.h>
@interface NSTableView (MovingSelectedRow)
@@ -442,8 +443,13 @@
[newFiltered addObjectsFromArray:suggestions];
}
- if(![newFiltered count])
+ if(![newFiltered count]) {
+ if([[self filterString] hasSuffix:@"."]) {
+ [theView doCompletionByUsingSpellChecker:dictMode fuzzyMode:fuzzyMode];
+ closeMe = YES;
+ }
[newFiltered addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"No completions found", @"no completions found message"), @"display", @"", @"noCompletion", nil]];
+ }
NSPoint old = NSMakePoint([self frame].origin.x, [self frame].origin.y + [self frame].size.height);