aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-14 10:16:04 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-14 10:16:04 +0000
commite4afc0cda57f53dbbb5020a88d85777385cbc941 (patch)
tree8ce697f1acd9f43f3fd98beb35dfc6aa2df7b690 /Source/SPTextViewAdditions.m
parenteec292b2a6a348f061630bebc5bfd7d39aa57ea0 (diff)
downloadsequelpro-e4afc0cda57f53dbbb5020a88d85777385cbc941.tar.gz
sequelpro-e4afc0cda57f53dbbb5020a88d85777385cbc941.tar.bz2
sequelpro-e4afc0cda57f53dbbb5020a88d85777385cbc941.zip
• fixed issue to highlight the correct current query after undoing, i.e. do not using the cache
• added SP_SELECTED_TEXT_RANGE shell variable for Bundle support of scope Input Text • added 'insertText', 'setText', 'setSelectedTextRange' JavaScript functions to window.system bridge
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r--Source/SPTextViewAdditions.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m
index d061d3ae..21811513 100644
--- a/Source/SPTextViewAdditions.m
+++ b/Source/SPTextViewAdditions.m
@@ -622,6 +622,8 @@
if(currentLineRange.length)
[env setObject:[[self string] substringWithRange:currentLineRange] forKey:SPBundleShellVariableCurrentLine];
+ [env setObject:NSStringFromRange(replaceRange) forKey:SPBundleShellVariableSelectedTextRange];
+
NSError *inputFileError = nil;
NSString *input = [NSString stringWithString:[[self string] substringWithRange:replaceRange]];
[input writeToFile:bundleInputFilePath