From e1a84802f214aabf5dd4301d736a30d380671426 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Wed, 8 Oct 2014 20:22:14 +0400 Subject: [PATCH] Minor --- .../jetbrains/jet/plugin/completion/smart/SmartCompletion.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/jet/plugin/completion/smart/SmartCompletion.kt b/idea/src/org/jetbrains/jet/plugin/completion/smart/SmartCompletion.kt index d8da238b2dc..f81a587d736 100644 --- a/idea/src/org/jetbrains/jet/plugin/completion/smart/SmartCompletion.kt +++ b/idea/src/org/jetbrains/jet/plugin/completion/smart/SmartCompletion.kt @@ -51,7 +51,7 @@ class SmartCompletion(val expression: JetSimpleNameExpression, object : LookupElementDecorator(item) { override fun handleInsert(context: InsertionContext) { if (context.getCompletionChar() == Lookup.REPLACE_SELECT_CHAR) { - val offset = context.getOffsetMap().getOffset(SmartCompletion.OLD_ARGUMENTS_REPLACEMENT_OFFSET) + val offset = context.getOffsetMap().getOffset(OLD_ARGUMENTS_REPLACEMENT_OFFSET) if (offset != -1) { context.getDocument().deleteString(context.getTailOffset(), offset) }