diff options
-rw-r--r-- | Source/CMTextView.m | 4 | ||||
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index befce811..86e6955f 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -226,7 +226,9 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) // Check if the caret is inside quotes "" or ''; if so // return the normal word suggestion due to the spelling's settings // plus all unique words used in the textView - BOOL isDictMode = ([[[self textStorage] attribute:kQuote atIndex:[self getRangeForCurrentWord].location effectiveRange:nil] isEqualToString:kQuoteValue] ); + BOOL isDictMode = NO; + if([self getRangeForCurrentWord].length) + isDictMode = ([[[self textStorage] attribute:kQuote atIndex:[self getRangeForCurrentWord].location effectiveRange:nil] isEqualToString:kQuoteValue] ); // Refresh quote attributes [[self textStorage] removeAttribute:kQuote range:NSMakeRange(0,[[self string] length])]; diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index 275142ca..a4daefa0 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -129,7 +129,7 @@ if(self = [self init]) { - if(aUserString) + if(aUserString && ![aUserString isEqualToString:@"`"]) [mutablePrefix appendString:aUserString]; if(aStaticPrefix) |