From 37bd3e6294636b36fd865d0eb469bab2057d81f7 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 22 Apr 2009 19:48:29 +0000 Subject: =?UTF-8?q?=E2=80=A2=20FIXED=20added=20a=20;=20to=20the=20separato?= =?UTF-8?q?r=20list=20for=20gathering=20all=20words=20used=20in=20the=20te?= =?UTF-8?q?xt=20view=20for=20completion=20to=20avoid=20suggesting=20foo=20?= =?UTF-8?q?and=20foo;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMTextView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') 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]; -- cgit v1.2.3