1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Move empty autocomplete entry check into c++ side

This commit is contained in:
Brian Fiete 2025-05-27 06:27:11 +02:00
parent dd2e5a25c5
commit 39a1f44b9c
2 changed files with 2 additions and 5 deletions

View file

@ -2426,11 +2426,6 @@ namespace IDE.ui
} }
continue; continue;
} }
else if (entryDisplay.Length == 0)
{
// Skip entry that has no name
continue;
}
switch (entryType) switch (entryType)
{ {

View file

@ -842,6 +842,8 @@ void BfAutoComplete::AddField(BfTypeInstance* typeInst, BfFieldDef* fieldDef, Bf
void BfAutoComplete::AddProp(BfTypeInstance* typeInst, BfPropertyDef* propDef, const StringImpl& filter) void BfAutoComplete::AddProp(BfTypeInstance* typeInst, BfPropertyDef* propDef, const StringImpl& filter)
{ {
if (propDef->mName.IsEmpty())
return;
int wantPrefixCount = 0; int wantPrefixCount = 0;
const char* filterStr = filter.c_str(); const char* filterStr = filter.c_str();
while (filterStr[0] == '@') while (filterStr[0] == '@')