diff options
-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 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 |