aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorGuillermo Ignacio Enriquez Gutierrez <ignacio@jp.ibm.com>2015-08-25 07:41:36 +0900
committerMax <post@wickenrode.com>2015-09-25 17:14:47 +0200
commit558180dbdca8116963661efc4e35c6c4a0c5808f (patch)
treec20511eaff3c74d52725b90d6d7d7e7ac7c1f0b1 /Source
parent61cc6c70653ef7cab7e53da0b1ad9934b1777697 (diff)
downloadsequelpro-558180dbdca8116963661efc4e35c6c4a0c5808f.tar.gz
sequelpro-558180dbdca8116963661efc4e35c6c4a0c5808f.tar.bz2
sequelpro-558180dbdca8116963661efc4e35c6c4a0c5808f.zip
Correctly enable/disable item in help menu
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTextView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index f9ec441e..e37b5939 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -3212,7 +3212,7 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS
[menuItem setTitle: NSLocalizedString(@"MySQL Help for Word", @"MySQL Help for Word")];
}
NSUInteger stringSize = [self getRangeForCurrentWord].length;
- return (stringSize || stringSize > 64);
+ return (0 < stringSize && stringSize < 65); // 1 ≤ stringSize ≤ 64
}
// Enable Copy as RTF if something is selected
if ([menuItem action] == @selector(copyAsRTF)) {