1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 12:02: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) public void SelectDirection(int32 dir)
{ {
mAutoComplete.HasInteracted = true;
if (mEntryList.IsEmpty) if (mEntryList.IsEmpty)
return; return;
int32 newSelection = mSelectIdx + dir; int32 newSelection = mSelectIdx + dir;
@ -1273,6 +1275,8 @@ namespace IDE.ui
float mWantX; float mWantX;
float mWantY; float mWantY;
public bool HasInteracted;
public this(EditWidget targetEditWidget) public this(EditWidget targetEditWidget)
{ {
mTargetEditWidget = targetEditWidget; mTargetEditWidget = targetEditWidget;

View file

@ -3888,11 +3888,14 @@ namespace IDE.ui
forceAsyncFinish = true; forceAsyncFinish = true;
} }
else if (c == '.') else if (c == '.')
{
if (mAutoComplete?.HasInteracted == true)
{ {
doAutocomplete = true; doAutocomplete = true;
} }
} }
} }
}
if (forceAsyncFinish) if (forceAsyncFinish)
{ {