From e4afc0cda57f53dbbb5020a88d85777385cbc941 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 14 Jan 2011 10:16:04 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20issue=20to=20highlight=20the=20corr?= =?UTF-8?q?ect=20current=20query=20after=20undoing,=20i.e.=20do=20not=20us?= =?UTF-8?q?ing=20the=20cache=20=E2=80=A2=20added=20SP=5FSELECTED=5FTEXT=5F?= =?UTF-8?q?RANGE=20shell=20variable=20for=20Bundle=20support=20of=20scope?= =?UTF-8?q?=20Input=20Text=20=E2=80=A2=20added=20'insertText',=20'setText'?= =?UTF-8?q?,=20'setSelectedTextRange'=20JavaScript=20functions=20to=20=20w?= =?UTF-8?q?indow.system=20bridge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTextView.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/SPTextView.m') 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; } -- cgit v1.2.3