From 72fd46bc9e64ec6dfa7eb06768b486b440a1fd96 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 14 Oct 2009 12:54:53 +0100 Subject: [PATCH] =?UTF-8?q?IDEADEV-40830=20Allow=20to=20use=20"=E2=80=8B*"?= =?UTF-8?q?=20wildcard=20in=20completion=20popup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codeInsight/completion/impl/CamelHumpMatcher.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java index bed5fa3f3716..72d39237534e 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/impl/CamelHumpMatcher.java @@ -95,14 +95,12 @@ public class CamelHumpMatcher extends PrefixMatcher { return NameUtil.buildMatcher(myPrefix, 0, true, true); } - final CodeInsightSettings settings = CodeInsightSettings.getInstance(); - int variant = settings.COMPLETION_CASE_SENSITIVE; - - switch (variant) { + switch (CodeInsightSettings.getInstance().COMPLETION_CASE_SENSITIVE) { case CodeInsightSettings.NONE: return NameUtil.buildMatcher(myPrefix, 0, true, true); case CodeInsightSettings.FIRST_LETTER: - return NameUtil.buildMatcher(myPrefix, 1, true, true); + int exactPrefixLen = myPrefix.startsWith("*") ? 0 : 1; + return NameUtil.buildMatcher(myPrefix, exactPrefixLen, true, true); case CodeInsightSettings.ALL: return NameUtil.buildMatcher(myPrefix, 0, false, false); default: