diff options
author | Deepak Azad | 2012-03-19 14:49:28 +0000 |
---|---|---|
committer | Dani Megert | 2012-03-19 14:50:04 +0000 |
commit | 82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb (patch) | |
tree | 9b1f71219a8475b1f6595bb6d5e785a52bcc13b1 | |
parent | ebcee0e39112c3797f2e25e8520756c7bf3f1494 (diff) | |
download | eclipse.platform.text-82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb.tar.gz eclipse.platform.text-82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb.tar.xz eclipse.platform.text-82ab4ae30e3c1a61168a9cf156385d9a3b84c1fb.zip |
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.java | 4 |
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 4b416d2b863..3fb9c565780 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; } |