Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java4
1 files changed, 2 insertions, 2 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 371a28580..666cc3012 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
@@ -83,7 +83,7 @@ public final class MatchingCharacterPainter implements IPainter, PaintListener {
private boolean fCharacterPresentAtCaretLocation;
/**
- * The document this painter is associated with.
+ * The document this painter is associated with, or <code>null</code>.
*
* @since 3.8
*/
@@ -465,7 +465,7 @@ public final class MatchingCharacterPainter implements IPainter, PaintListener {
* org.eclipse.jface.text.IDocument)
*/
public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput) {
- //do nothing
+ fDocument= null;
}
/**

Back to the top