aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-14 10:25:40 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-14 10:25:40 +0000
commit71394ef3837299457b1a5b65ff562c3be6985bba (patch)
treed604d24a2fedb7a66c1b92c6940786d46b92e2e6 /Source/SPTextViewAdditions.m
parent3033e428aba1418e7797fb987c1280c6db67c305 (diff)
downloadsequelpro-71394ef3837299457b1a5b65ff562c3be6985bba.tar.gz
sequelpro-71394ef3837299457b1a5b65ff562c3be6985bba.tar.bz2
sequelpro-71394ef3837299457b1a5b65ff562c3be6985bba.zip
• fixed GUI problem for line numbering in Query Editor
• improved Bundle command script editor • sped up a bit the NoodleLineNumbering by pre-calculation of constants used in a loop • fixed issue to detect the scope Query Editor better and safer for Bundle commands
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r--Source/SPTextViewAdditions.m2
1 files changed, 1 insertions, 1 deletions
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];