From 0106844012a76356853e08f965a46db685f98987 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 19 Jan 2011 20:39:37 +0000 Subject: =?UTF-8?q?=E2=80=A2=20invoke=20auto-completion=20only=20if=20the?= =?UTF-8?q?=20length=20of=20the=20pending=20edits=20is=201=20(user=20typed?= =?UTF-8?q?=20one=20character)=20to=20suppress=20it=20while=20pasting=20or?= =?UTF-8?q?=20inserting=20larger=20text=20chunks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTextView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPTextView.m b/Source/SPTextView.m index bfc90581..95d959c6 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -3052,7 +3052,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) } // Start autocompletion if enabled - if([[NSApp keyWindow] firstResponder] == self && [prefs boolForKey:SPCustomQueryAutoComplete] && !completionIsOpen && editedMask != 1 && [textStore editedRange].length) + if([[NSApp keyWindow] firstResponder] == self && [prefs boolForKey:SPCustomQueryAutoComplete] && !completionIsOpen && editedMask != 1 && [textStore changeInLength] == 1) [self performSelector:@selector(doAutoCompletion) withObject:nil afterDelay:[[prefs valueForKey:SPCustomQueryAutoCompleteDelay] doubleValue]]; // Cancel calling doSyntaxHighlighting for large text -- cgit v1.2.3