aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-22 19:48:29 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-22 19:48:29 +0000
commit37bd3e6294636b36fd865d0eb469bab2057d81f7 (patch)
treed6b187cfc4ecc83871cc002b81405512226f4f61 /Source/CMTextView.m
parentf6c5b5c3af78ea95519f98b5d8853f4d75682fa2 (diff)
downloadsequelpro-37bd3e6294636b36fd865d0eb469bab2057d81f7.tar.gz
sequelpro-37bd3e6294636b36fd865d0eb469bab2057d81f7.tar.bz2
sequelpro-37bd3e6294636b36fd865d0eb469bab2057d81f7.zip
• FIXED added a ; to the separator list for gathering all words used in the text view for completion to avoid suggesting foo and foo;
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 05df273a..767a98d1 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -591,7 +591,7 @@ YY_BUFFER_STATE yy_scan_string (const char *);
if([[self textStorage] attribute:kQuote atIndex:charRange.location effectiveRange:nil])
return [[NSSpellChecker sharedSpellChecker] completionsForPartialWordRange:NSMakeRange(0,charRange.length) inString:[[self string] substringWithRange:charRange] language:nil inSpellDocumentWithTag:0];
- NSCharacterSet *separators = [NSCharacterSet characterSetWithCharactersInString:@" \t\r\n,()\"'`-!"];
+ NSCharacterSet *separators = [NSCharacterSet characterSetWithCharactersInString:@" \t\r\n,()\"'`-!;"];
NSArray *textViewWords = [[self string] componentsSeparatedByCharactersInSet:separators];
NSString *partialString = [[self string] substringWithRange:charRange];
unsigned int partialLength = [partialString length];