From 46fa8b4baf9fba1c0db2834328f4e9e8206caa19 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Thu, 17 Mar 2011 13:32:40 +0300 Subject: [PATCH] IDEA-66424: Roo console: incorrect behavior after typing command and Enter pressing --- .../execution/runners/AbstractConsoleRunnerWithHistory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java b/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java index d030253602db..8a55c94dd1f9 100644 --- a/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java +++ b/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java @@ -389,7 +389,7 @@ public abstract class AbstractConsoleRunnerWithHistory { final EditorEx editor = myLanguageConsole.getConsoleEditor(); final Lookup lookup = LookupManager.getActiveLookup(editor); e.getPresentation().setEnabled(!myProcessHandler.isProcessTerminated() && - (lookup == null || !lookup.isCompletion())); + (lookup == null || !(lookup.isCompletion() && lookup.isFocused()))); } }