diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-09 18:00:36 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-09 18:00:36 +0000 |
commit | c24b14785f4c966c1b36db1c9a7fcba789e71cd0 (patch) | |
tree | 29e7dde4175eef074cf9d634d05f1337bb589b21 /Source/CMTextView.m | |
parent | 1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd (diff) | |
download | sequelpro-c24b14785f4c966c1b36db1c9a7fcba789e71cd0.tar.gz sequelpro-c24b14785f4c966c1b36db1c9a7fcba789e71cd0.tar.bz2 sequelpro-c24b14785f4c966c1b36db1c9a7fcba789e71cd0.zip |
• fixed bug for "Show help while typing" - prevent an internal loop of calling ShowMySQLHelpForCurrentWord if "Highlight the current Query" is activated.
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r-- | Source/CMTextView.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index ddb26f32..9c66b068 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -2449,7 +2449,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) //make sure that the notification is from the correct textStorage object if (textStore!=[self textStorage]) return; - if([prefs boolForKey:@"CustomQueryUpdateAutoHelp"]) + // Start autohelp only if the user really changed the text (not e.g. for setting a background color) + if([prefs boolForKey:@"CustomQueryUpdateAutoHelp"] && [textStore editedMask] != 1) [self performSelector:@selector(autoHelp) withObject:nil afterDelay:[[[prefs valueForKey:@"CustomQueryAutoHelpDelay"] retain] floatValue]]; if([[self string] length] > SP_TEXT_SIZE_TRIGGER_FOR_PARTLY_PARSING) |