From 558180dbdca8116963661efc4e35c6c4a0c5808f Mon Sep 17 00:00:00 2001 From: Guillermo Ignacio Enriquez Gutierrez Date: Tue, 25 Aug 2015 07:41:36 +0900 Subject: Correctly enable/disable item in help menu --- Source/SPTextView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') 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)) { -- cgit v1.2.3