From 71394ef3837299457b1a5b65ff562c3be6985bba Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 14 Dec 2010 10:25:40 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20GUI=20problem=20for=20line=20number?= =?UTF-8?q?ing=20in=20Query=20Editor=20=E2=80=A2=20improved=20Bundle=20com?= =?UTF-8?q?mand=20script=20editor=20=E2=80=A2=20sped=20up=20a=20bit=20the?= =?UTF-8?q?=20NoodleLineNumbering=20by=20pre-calculation=20of=20constants?= =?UTF-8?q?=20used=20in=20a=20loop=20=E2=80=A2=20fixed=20issue=20to=20dete?= =?UTF-8?q?ct=20the=20scope=20Query=20Editor=20better=20and=20safer=20for?= =?UTF-8?q?=20Bundle=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTextViewAdditions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPTextViewAdditions.m') diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index 11defa20..3eeb46ce 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -534,7 +534,7 @@ [[NSFileManager defaultManager] removeItemAtPath:bundleInputFilePath error:nil]; - BOOL selfIsQueryEditor = ([[[self class] description] isEqualToString:@"SPTextView"]) ; + BOOL selfIsQueryEditor = ([[[self class] description] isEqualToString:@"SPTextView"] && [self respondsToSelector:@selector(currentQueryRange)]) ; if([cmdData objectForKey:SPBundleFileInputSourceKey]) inputAction = [[cmdData objectForKey:SPBundleFileInputSourceKey] lowercaseString]; -- cgit v1.2.3