From 8e13a4f6a28004cddde81d42be0cf867cf83a15a Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 2 Oct 2010 12:11:00 +0400 Subject: [PATCH] up arrow shoulod work in completion list when cyclic scrolling is disabled --- .../codeInsight/lookup/impl/LookupActionHandler.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 517913d81e6e..40e2d8e84714 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 @@ -86,12 +86,12 @@ public abstract class LookupActionHandler extends EditorActionHandler { } protected void executeInLookup(final LookupImpl lookup, DataContext context) { - if (!UISettings.getInstance().CYCLE_SCROLLING) { - myOriginalHandler.execute(lookup.getEditor(), context); - return; - } - if (!lookup.isFocused()) { + if (!UISettings.getInstance().CYCLE_SCROLLING) { + myOriginalHandler.execute(lookup.getEditor(), context); + return; + } + lookup.setFocused(true); lookup.getList().setSelectedIndex(0); lookup.refreshUi();