don't restart already restarted completion (EA-37973)

This commit is contained in:
peter
2012-08-14 16:42:40 +02:00
parent 62caf220fb
commit d88aee51a4
2 changed files with 5 additions and 6 deletions
@@ -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) {
@@ -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();