From 1d5043e383dac26280ee799c245aef98146221c0 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Mon, 24 Aug 2015 15:05:32 +0300 Subject: [PATCH] fixed possible answer detection on document changed event --- .../educational/src/com/jetbrains/edu/EduDocumentListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/educational/src/com/jetbrains/edu/EduDocumentListener.java b/python/educational/src/com/jetbrains/edu/EduDocumentListener.java index 2b142ec2c73d..8e11945089ef 100644 --- a/python/educational/src/com/jetbrains/edu/EduDocumentListener.java +++ b/python/educational/src/com/jetbrains/edu/EduDocumentListener.java @@ -86,7 +86,7 @@ public class EduDocumentListener extends DocumentAdapter { answerPlaceholder.setLine(line); answerPlaceholder.setStart(start); if (usePossibleAnswerLength) { - answerPlaceholder.setPossibleAnswer(document.getText(TextRange.create(start, start + length))); + answerPlaceholder.setPossibleAnswer(document.getText(TextRange.create(twStart, twStart + length))); } else if (myTrackLength) { answerPlaceholder.setLength(length);