aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.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/SPTextView.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/SPTextView.m')
-rw-r--r--Source/SPTextView.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index 30904ba8..32c692b5 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -3069,6 +3069,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
// Do syntax highlighting/re-calculate snippet ranges only if the user really changed the text
if(editedMask != 1) {
+ [customQueryInstance setTextViewWasChanged:YES];
+
// Re-calculate snippet ranges if snippet session is active
if(snippetControlCounter > -1 && !snippetWasJustInserted && !isProcessingMirroredSnippets) {
// Remove any fully nested snippets relative to the current snippet which was edited
@@ -3132,6 +3134,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
[self doSyntaxHighlighting];
} else {
+ [customQueryInstance setTextViewWasChanged:NO];
textBufferSizeIncreased = NO;
}