1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-01 13:56:00 +02:00

Immediate window fixes

This commit is contained in:
Brian Fiete 2023-12-28 10:35:23 -05:00
parent e245c922db
commit ecc38960f3
2 changed files with 80 additions and 68 deletions

View file

@ -83,7 +83,7 @@ namespace IDE.ui
}*/
}
bool IsInsideEntry(int idx)
public bool IsInsideEntry(int idx)
{
var immediateWidget = (ImmediateWidget)mEditWidget;
return idx > immediateWidget.mEntryStartPos.mIndex;
@ -443,6 +443,13 @@ namespace IDE.ui
return;
}
if (c == '\x7F') // Ctrl+Backspace
{
var editWidgetContent = (ImmediateWidgetContent)mEditWidgetContent;
if (!editWidgetContent.IsInsideEntry(editWidgetContent.mCursorTextPos - 1))
return;
}
String cmdText = scope String();
bool hasCmd = false;