aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-07 22:07:58 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-07 22:07:58 +0000
commitee8c83d433d0351dffda4ce273e3d1278154f769 (patch)
tree04839edbaf31f4cf9c598dce58e24d65448f6472 /Source/CustomQuery.m
parentfb4e3024ae282b557eef755b974c3e081dac0f3e (diff)
downloadsequelpro-ee8c83d433d0351dffda4ce273e3d1278154f769.tar.gz
sequelpro-ee8c83d433d0351dffda4ce273e3d1278154f769.tar.bz2
sequelpro-ee8c83d433d0351dffda4ce273e3d1278154f769.zip
• added to CustomQuery's CMTextView the option to set auto-completion on/off, settable in Prefs and gear menu
- if inserted completion is marked as function it inserts snippet (${}1:) so far; function parameters as snippets follows soon
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index e586557e..e3d26d74 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -222,7 +222,7 @@
}
// The actual query strings have been already stored as tooltip
- [textView insertFavoriteAsSnippet:[[queryFavoritesButton selectedItem] toolTip] atRange:NSMakeRange([textView selectedRange].location, 0)];
+ [textView insertAsSnippet:[[queryFavoritesButton selectedItem] toolTip] atRange:NSMakeRange([textView selectedRange].location, 0)];
}
}
@@ -325,9 +325,9 @@
// on normal autocomplete usage.
if (sender == completionListMenuItem) {
if([[NSApp currentEvent] modifierFlags] & (NSControlKeyMask))
- [textView doCompletionByUsingSpellChecker:NO fuzzyMode:YES];
+ [textView doCompletionByUsingSpellChecker:NO fuzzyMode:YES autoCompleteMode:NO];
else
- [textView doCompletionByUsingSpellChecker:NO fuzzyMode:NO];
+ [textView doCompletionByUsingSpellChecker:NO fuzzyMode:NO autoCompleteMode:NO];
}
// "Editor font..." menu item to bring up the font panel