diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-03-08 14:03:10 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-03-08 14:03:10 +0000 |
commit | 9a15311b23c074ce579cd55631c8f2b0e574fda0 (patch) | |
tree | 477522c564944272be564fcd3c5a5499ff569449 | |
parent | 7f8b4675de74f7b43057d21d445f0ddca59f95b8 (diff) | |
download | sequelpro-9a15311b23c074ce579cd55631c8f2b0e574fda0.tar.gz sequelpro-9a15311b23c074ce579cd55631c8f2b0e574fda0.tar.bz2 sequelpro-9a15311b23c074ce579cd55631c8f2b0e574fda0.zip |
• auto-completion
- make sure it will only be invoked if there're pending changes to the text buffer -this fixes issue that auto-completion was invoke by eg Run All
-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 |