PY-719 Highlighting artifacts on executed lines in console

This commit is contained in:
Oleg Shpynov
2010-08-31 17:43:05 +04:00
parent 385649b73b
commit d3698c52d9
@@ -236,6 +236,13 @@ public abstract class AbstractConsoleRunnerWithHistory {
}
protected void runExecuteActionInner(final AnActionEvent actionEvent) {
try {
// Allow editor syntax highlighting daemon to finish
Thread.sleep(300);
}
catch (InterruptedException e) {
// ignore
}
// Process input and add to history
final Document document = getLanguageConsole().getCurrentEditor().getDocument();
final String text = document.getText();