aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-09 23:08:45 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-09 23:08:45 +0000
commita252c9efe5f22cbdc8dd8343c7e2a6c631add785 (patch)
treedec5256358d8fde27f940937f2c0680453bd51dc /Source
parentcfd4efa37b38e213f71301355ac7b583d88d1b9e (diff)
downloadsequelpro-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.m4
-rw-r--r--Source/SPNarrowDownCompletion.m2
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)