js repl: in/out markers done
[idea/community.git] / platform / lang-impl / src / com / intellij / execution / console / LanguageConsoleImpl.java
index b2be9f75211394ce7a3cc5245f0f8340062b4cc5..9105bb5192855a9f1bafa221d62e09f61e384707 100644 (file)
@@ -414,9 +414,9 @@ public class LanguageConsoleImpl implements Disposable, TypeSafeDataProvider {
     }
 
     Document history = myHistoryViewer.getDocument();
-    MarkupModel markupModel = DocumentMarkupModel.forDocument(history, myProject, true);
     int offset = appendToHistoryDocument(history, text);
-    markupModel.addRangeHighlighter(offset, offset + text.length(), HighlighterLayer.SYNTAX, attributes, HighlighterTargetArea.EXACT_RANGE);
+    DocumentMarkupModel.forDocument(history, myProject, true).addRangeHighlighter(offset, offset + text.length(), HighlighterLayer.SYNTAX, attributes,
+                                                                                  HighlighterTargetArea.EXACT_RANGE);
   }
 
   @SuppressWarnings("UnusedDeclaration")