EDU-683 Do not show placeholders from previous steps in student mode
[idea/community.git] / python / educational-core / student / src / com / jetbrains / edu / learning / core / EduAnswerPlaceholderPainter.java
index 3dcdb43c64a4210a93d9cab69e1a67f175724138..5c83a89af9899b2bf10065942669d7092bf05ddc 100644 (file)
@@ -56,6 +56,9 @@ public class EduAnswerPlaceholderPainter {
   }
 
   public static void drawAnswerPlaceholderFromPrevStep(@NotNull Editor editor, @NotNull AnswerPlaceholder placeholder) {
+    if (placeholder.getUseLength()) {
+      return;
+    }
     EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme();
     Color color = scheme.getColor(EditorColors.TEARLINE_COLOR);
     SimpleTextAttributes attributes = SimpleTextAttributes.GRAY_ATTRIBUTES;