IDEA-66424: Roo console: incorrect behavior after typing command and Enter pressing

This commit is contained in:
Dmitry Avdeev
2011-03-17 13:38:51 +03:00
parent 3c0171cbd2
commit 46fa8b4baf
@@ -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())));
}
}