diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-04-22 19:48:29 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-04-22 19:48:29 +0000 |
commit | 37bd3e6294636b36fd865d0eb469bab2057d81f7 (patch) | |
tree | d6b187cfc4ecc83871cc002b81405512226f4f61 | |
parent | f6c5b5c3af78ea95519f98b5d8853f4d75682fa2 (diff) | |
download | sequelpro-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;
-rw-r--r-- | Source/CMTextView.m | 2 |
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]; |