aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-15 15:09:11 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-15 15:09:11 +0000
commit42a20ff3dd919d89243f6bceb563fb450f74acf2 (patch)
treee7ec86c603a974cfc5aa56b953467b66433dfb5a /Source/CMTextView.m
parent8e840dd2b0e8a5c90e473b0e770dadcef9cb23a1 (diff)
downloadsequelpro-42a20ff3dd919d89243f6bceb563fb450f74acf2.tar.gz
sequelpro-42a20ff3dd919d89243f6bceb563fb450f74acf2.tar.bz2
sequelpro-42a20ff3dd919d89243f6bceb563fb450f74acf2.zip
- removed F5 completion debug output
- fixed issue while ‘normal’ completion after “table.” completion
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 6c2bd7a3..c3b27987 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -450,9 +450,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
if([[self string] length] > parseRange.location+parseRange.length) {
if([[self string] characterAtIndex:parseRange.location+parseRange.length] == '`') {
backtickMode+=2;
- NSLog(@"a %@", NSStringFromRange(parseRange));
parseRange.length++; // adjust parse string for right `
- NSLog(@"b %@", NSStringFromRange(parseRange));
}
}
@@ -470,6 +468,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
} else {
filter = [[parsedString stringByReplacingOccurrencesOfString:@"``" withString:@"`"] stringByReplacingOccurrencesOfRegex:@"^`|`$" withString:@""];
}
+ if(![filter length])
+ completionRange = NSMakeRange(parseRange.location+parseRange.length,0);
} else {
filter = [NSString stringWithString:currentWord];
}