aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-01-10 23:20:08 +0000
committerrowanbeentje <rowan@beent.je>2012-01-10 23:20:08 +0000
commit9d22f2feaf57a9bc15c258b932c7254d2a665c26 (patch)
tree96633e479501b4fdd369a0fc7a2602d14a723acf /Source
parentc70543a5e5afb001f7cc4d6e3bb45ed943003a64 (diff)
downloadsequelpro-9d22f2feaf57a9bc15c258b932c7254d2a665c26.tar.gz
sequelpro-9d22f2feaf57a9bc15c258b932c7254d2a665c26.tar.bz2
sequelpro-9d22f2feaf57a9bc15c258b932c7254d2a665c26.zip
- Roll back r3453 to avoid future license issues
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTextViewAdditions.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index 7012e4fa..b2a2354b 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -553,7 +553,7 @@
currentLineRange = [[self string] lineRangeForRange:NSMakeRange([self selectedRange].location, 0)];
if(selfIsQueryEditor) {
- currentQueryRange = [(SPCustomQuery *)[self delegate] currentQueryRange];
+ currentQueryRange = [[self delegate] currentQueryRange];
} else {
currentQueryRange = currentLineRange;
}
@@ -617,8 +617,8 @@
}
}
- if(selfIsQueryEditor && [(SPCustomQuery *)[self delegate] currentQueryRange].length)
- [env setObject:[[self string] substringWithRange:[(SPCustomQuery *)[self delegate] currentQueryRange]] forKey:SPBundleShellVariableCurrentQuery];
+ if(selfIsQueryEditor && [[self delegate] currentQueryRange].length)
+ [env setObject:[[self string] substringWithRange:[[self delegate] currentQueryRange]] forKey:SPBundleShellVariableCurrentQuery];
if(currentSelectionRange.length)
[env setObject:[[self string] substringWithRange:currentSelectionRange] forKey:SPBundleShellVariableSelectedText];