diff --git a/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupActionHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupActionHandler.java index d03e6f0f2966..02ae9a8d5ebf 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupActionHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupActionHandler.java @@ -85,9 +85,13 @@ public abstract class LookupActionHandler extends EditorActionHandler { static void executeDown(LookupImpl lookup) { if (!lookup.isFocused()) { + boolean semiFocused = CompletionPreview.hasPreview(lookup); lookup.setFocused(true); lookup.getList().setSelectedIndex(0); lookup.refreshUi(false, true); + if (!semiFocused) { + return; + } } ListScrollingUtil.moveDown(lookup.getList(), 0); }