summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Azad2012-03-19 10:49:28 (EDT)
committerDani Megert2012-03-19 10:50:04 (EDT)
commit82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb (patch)
tree9b1f71219a8475b1f6595bb6d5e785a52bcc13b1
parentebcee0e39112c3797f2e25e8520756c7bf3f1494 (diff)
downloadeclipse.platform.text-82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb.zip
eclipse.platform.text-82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb.tar.gz
eclipse.platform.text-82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb.tar.bz2
Fixed bug 374086: [syntax highlighting] "Highlight enclosing brackets"v20120319-1450
doesn't work well without "Highlight at caret location"
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java
index 4b416d2..3fb9c56 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java
@@ -355,6 +355,10 @@ public final class MatchingCharacterPainter implements IPainter, PaintListener {
fDocumentChanged= false;
if (reason != IPainter.CONFIGURATION && !lengthChanged && fPreviousSelection != null && reason != IPainter.INTERNAL) {
if (!matcher.isRecomputationOfEnclosingPairRequired(document, selection, fPreviousSelection)) {
+ if (fCharacterPresentAtCaretLocation && !fHighlightCharacterAtCaretLocation) {
+ fCharacterPresentAtCaretLocation= false;
+ handleDrawRequest(null);
+ }
fPreviousSelection= selection;
return;
}