diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-09 23:08:45 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-09 23:08:45 +0000 |
commit | a252c9efe5f22cbdc8dd8343c7e2a6c631add785 (patch) | |
tree | dec5256358d8fde27f940937f2c0680453bd51dc /Source | |
parent | cfd4efa37b38e213f71301355ac7b583d88d1b9e (diff) | |
download | sequelpro-a252c9efe5f22cbdc8dd8343c7e2a6c631add785.tar.gz sequelpro-a252c9efe5f22cbdc8dd8343c7e2a6c631add785.tar.bz2 sequelpro-a252c9efe5f22cbdc8dd8343c7e2a6c631add785.zip |
• F5 completion
- fixed forgotten range checking to suppress Console warning
- `|` [ | := caret ] shows all field names - up to now only those from the current table - table/db/proc/func names
Diffstat (limited to 'Source')
-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) |