aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-09 18:00:36 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-09 18:00:36 +0000
commitc24b14785f4c966c1b36db1c9a7fcba789e71cd0 (patch)
tree29e7dde4175eef074cf9d634d05f1337bb589b21 /Source
parent1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd (diff)
downloadsequelpro-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')
-rw-r--r--Source/CMTextView.m3
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)