1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 01:58: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; var immediateWidget = (ImmediateWidget)mEditWidget;
return idx > immediateWidget.mEntryStartPos.mIndex; return idx > immediateWidget.mEntryStartPos.mIndex;
@ -443,6 +443,13 @@ namespace IDE.ui
return; return;
} }
if (c == '\x7F') // Ctrl+Backspace
{
var editWidgetContent = (ImmediateWidgetContent)mEditWidgetContent;
if (!editWidgetContent.IsInsideEntry(editWidgetContent.mCursorTextPos - 1))
return;
}
String cmdText = scope String(); String cmdText = scope String();
bool hasCmd = false; bool hasCmd = false;

View file

@ -254,6 +254,10 @@ namespace IDE.ui
ClearText(); ClearText();
}); });
bool isOutputWindow = mIsReadOnly;
if (isOutputWindow)
{
// Separator // Separator
menu.AddItem(); menu.AddItem();
@ -324,6 +328,7 @@ namespace IDE.ui
{ {
gApp.mDebugger.SetOutputFilterFlags(outputFilterFlags ^ .SymbolLoadMessages); gApp.mDebugger.SetOutputFilterFlags(outputFilterFlags ^ .SymbolLoadMessages);
}); });
}
/* Not sure how to filter Program Output, it's handled in BeefSysLib not the IDE/Debugger. Perhaps we would /* Not sure how to filter Program Output, it's handled in BeefSysLib not the IDE/Debugger. Perhaps we would
also need SetOutputFilterFlags() in BeefSysLib also need SetOutputFilterFlags() in BeefSysLib