From 9a15311b23c074ce579cd55631c8f2b0e574fda0 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 8 Mar 2010 14:03:10 +0000 Subject: =?UTF-8?q?=E2=80=A2=20auto-completion=20-=20make=20sure=20it=20wi?= =?UTF-8?q?ll=20only=20be=20invoked=20if=20there're=20pending=20changes=20?= =?UTF-8?q?to=20the=20text=20buffer=20-this=20fixes=20issue=20that=20auto-?= =?UTF-8?q?completion=20was=20invoke=20by=20eg=20Run=20All?= 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/CMTextView.m') diff --git a/Source/CMTextView.m b/Source/CMTextView.m index 0c6d2187..32434682 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -2474,7 +2474,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) } // Start autocompletion if enabled - if([[NSApp keyWindow] firstResponder] == self && [prefs boolForKey:SPCustomQueryAutoComplete] && !completionIsOpen && editedMask != 1) + if([[NSApp keyWindow] firstResponder] == self && [prefs boolForKey:SPCustomQueryAutoComplete] && !completionIsOpen && editedMask != 1 && [textStore editedRange].length) [self performSelector:@selector(doAutoCompletion) withObject:nil afterDelay:[[[prefs valueForKey:SPCustomQueryAutoCompleteDelay] retain] doubleValue]]; // Cancel calling doSyntaxHighlighting for large text -- cgit v1.2.3