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

Fixed autocomplete incorrectly auto-inserting during '.(' and '(.)'

This commit is contained in:
Brian Fiete 2025-01-09 05:59:44 -08:00
parent 05f17ce3ae
commit a1a5eebd8e
2 changed files with 8 additions and 1 deletions

View file

@ -702,6 +702,8 @@ namespace IDE.ui
public void SelectDirection(int32 dir)
{
mAutoComplete.HasInteracted = true;
if (mEntryList.IsEmpty)
return;
int32 newSelection = mSelectIdx + dir;
@ -1273,6 +1275,8 @@ namespace IDE.ui
float mWantX;
float mWantY;
public bool HasInteracted;
public this(EditWidget targetEditWidget)
{
mTargetEditWidget = targetEditWidget;

View file

@ -3889,7 +3889,10 @@ namespace IDE.ui
}
else if (c == '.')
{
doAutocomplete = true;
if (mAutoComplete?.HasInteracted == true)
{
doAutocomplete = true;
}
}
}
}