mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix assertions when hitting ctrl+space with hint autopopup active
This commit is contained in:
+1
-2
@@ -239,11 +239,10 @@ public class CodeCompletionHandlerBase implements CodeInsightActionHandler {
|
||||
@NotNull
|
||||
private LookupImpl obtainLookup(Editor editor) {
|
||||
LookupImpl existing = (LookupImpl)LookupManager.getActiveLookup(editor);
|
||||
if (existing != null && existing.isCompletion()) {
|
||||
if (existing != null && existing.isCompletion() && !existing.isHintMode()) {
|
||||
existing.markReused();
|
||||
if (!autopopup) {
|
||||
existing.setFocused(true);
|
||||
existing.setHintMode(false);
|
||||
}
|
||||
return existing;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user