From 0945a3afd4ae2e2bbea3d95083790c5682340fc9 Mon Sep 17 00:00:00 2001 From: Oleg Shpynov Date: Thu, 11 Mar 2010 16:13:32 +0300 Subject: [PATCH] Removed broken scrolling code --- .../python/console/PyConsoleProcessHandler.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/python/src/com/jetbrains/python/console/PyConsoleProcessHandler.java b/python/src/com/jetbrains/python/console/PyConsoleProcessHandler.java index a57d0f8d817b..e83e712b9703 100644 --- a/python/src/com/jetbrains/python/console/PyConsoleProcessHandler.java +++ b/python/src/com/jetbrains/python/console/PyConsoleProcessHandler.java @@ -6,6 +6,7 @@ import com.intellij.execution.process.ConsoleHighlighter; import com.intellij.execution.process.OSProcessHandler; import com.intellij.execution.ui.ConsoleViewContentType; import com.intellij.openapi.application.ApplicationManager; +import com.intellij.openapi.application.ModalityState; import com.intellij.openapi.editor.markup.TextAttributes; import com.intellij.openapi.util.Key; import com.intellij.openapi.util.Ref; @@ -70,12 +71,6 @@ class PyConsoleProcessHandler extends OSProcessHandler { } } - final Ref shouldScroll = new Ref(false); - ApplicationManager.getApplication().invokeLater(new Runnable() { - public void run() { - shouldScroll.set(languageConsole.shouldScrollHistoryToEnd()); - } - }); // Highlight output by pattern Matcher matcher; while ((matcher = CODE_ELEMENT_PATTERN.matcher(string)).find()) { @@ -94,15 +89,6 @@ class PyConsoleProcessHandler extends OSProcessHandler { string = string.substring(matcher.end()); } printToConsole(languageConsole, string, ConsoleViewContentType.NORMAL_OUTPUT); - - // Revert scrolling - if (shouldScroll.get()){ - ApplicationManager.getApplication().invokeLater(new Runnable() { - public void run() { - languageConsole.queueUiUpdate(false); - } - }); - } } private static void printToConsole(final LanguageConsoleImpl console, final String string, final ConsoleViewContentType type) {