diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java index c6267253f16e..f6ca2e6edd5b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java @@ -604,7 +604,9 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement cancel(); final CompletionProgressIndicator current = CompletionServiceImpl.getCompletionService().getCurrentCompletion(); - LOG.assertTrue(this == current, current + "!=" + this); + if (this != current) { + LOG.error(current + "!=" + this); + } if (isAutopopupCompletion() && !myLookup.isShown()) { if (CompletionServiceImpl.getCompletionService().getCurrentCompletion() == this) { diff --git a/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/BackspaceHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/BackspaceHandler.java index 3b07eaa3143e..17b9eba96e89 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/BackspaceHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/lookup/impl/BackspaceHandler.java @@ -62,14 +62,11 @@ public class BackspaceHandler extends EditorActionHandler { } if (process != null) { - process.prefixUpdated(); - } - - if (hideOffset < editor.getCaretModel().getOffset()) { - if (process != null) { + if (hideOffset < editor.getCaretModel().getOffset()) { process.scheduleRestart(); return; } + process.prefixUpdated(); } lookup.hide();