From e03cf4cead57312537155309bf32842ad53a951c Mon Sep 17 00:00:00 2001 From: "Liana.Bakradze" Date: Mon, 3 Oct 2016 14:01:48 +0300 Subject: [PATCH] use correct visible length --- .../jetbrains/edu/learning/courseFormat/AnswerPlaceholder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/educational-core/student/src/com/jetbrains/edu/learning/courseFormat/AnswerPlaceholder.java b/python/educational-core/student/src/com/jetbrains/edu/learning/courseFormat/AnswerPlaceholder.java index ff6ea8f7b758..d952d934c793 100644 --- a/python/educational-core/student/src/com/jetbrains/edu/learning/courseFormat/AnswerPlaceholder.java +++ b/python/educational-core/student/src/com/jetbrains/edu/learning/courseFormat/AnswerPlaceholder.java @@ -241,7 +241,7 @@ public class AnswerPlaceholder { if (minIndex > subtaskIndex) { return minInfo.isNeedInsertText() ? 0 : minInfo.getPlaceholderText().length(); } - int maxIndex = Collections.max(ContainerUtil.filter(mySubtaskInfos.keySet(), i -> i < subtaskIndex)); + int maxIndex = Collections.max(ContainerUtil.filter(mySubtaskInfos.keySet(), i -> i <= subtaskIndex)); return getUseLength() ? length : mySubtaskInfos.get(maxIndex).getPossibleAnswer().length(); } -- 2.23.3