pop down completion list when all characters have been deleted

This commit is contained in:
Axel Kohlmeyer
2023-10-09 23:32:22 -04:00
parent b24e1e10a0
commit b816029d70

View File

@ -577,6 +577,10 @@ void CodeEditor::keyPressEvent(QKeyEvent *event)
--begin;
}
if (((cursor.positionInBlock() - begin) > 2) || (line[begin + 1] == '$')) runCompletion();
if (current_comp && current_comp->popup()->isVisible() &&
((cursor.positionInBlock() - begin) < 2)) {
current_comp->popup()->hide();
}
}
}