aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r--Source/SPTextView.m12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index 21ab5260..f83b2549 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -2991,7 +2991,17 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
* Disable the search in the MySQL help function when getRangeForCurrentWord returns zero length.
*/
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
-{
+{
+
+ if([menuItem action] == @selector(executeBundleItemForEditor:))
+ {
+ return YES;
+ }
+ if([menuItem action] == @selector(executeBundleItemForInputField:))
+ {
+ return NO;
+ }
+
// Enable or disable the search in the MySQL help menu item depending on whether there is a
// selection and whether it is a reasonable length.
if ([menuItem action] == @selector(showMySQLHelpForCurrentWord:)) {