aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-21 13:05:55 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-21 13:05:55 +0000
commit28819b6ab639d29bf5e5897e7ac4c784771d3651 (patch)
tree6b370fe43d17aeb911ebb5dfb6b306fb799f9884 /Source/SPTextView.m
parent218c2e17f054f3333d15af62a4f60f41b464c849 (diff)
downloadsequelpro-28819b6ab639d29bf5e5897e7ac4c784771d3651.tar.gz
sequelpro-28819b6ab639d29bf5e5897e7ac4c784771d3651.tar.bz2
sequelpro-28819b6ab639d29bf5e5897e7ac4c784771d3651.zip
• sped up getRangeForCurrentWord
- fixes also the short interruption of the cursor blinking - for completion the old method is used, since it's fine-tuned to use it - fix will come soon - preparation for user-defined word symbols • fixed issue for soft indent if user uses deleteForward: selector (⇧⌫)
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r--Source/SPTextView.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index 41b5d6e4..cd6e22ff 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -606,7 +606,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
NSString* filter;
NSString* dbName = nil;
NSString* tableName = nil;
- NSRange completionRange = [self getRangeForCurrentWord];
+ NSRange completionRange = [self getRangeForCurrentWordForCompletion];
NSRange parseRange = completionRange;
NSString* currentWord = [[self string] substringWithRange:completionRange];
NSString* prefix = @"";
@@ -2445,7 +2445,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
&& ![self selectedRange].length
&& [prefs boolForKey:SPCustomQuerySoftIndent]
&& [self isCaretAtIndentPositionIgnoreLineStart:YES]
- && ![self isCaretAdjacentToAlphanumCharWithInsertionOf:'-'])
+ && [self selectedRange].location < [[self string] length] && [[self string] characterAtIndex:[self selectedRange].location] == ' ')
{
[self shiftSelectionLeft];
return;