mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 10:08:00 +02:00
Immediate window fixes
This commit is contained in:
parent
e245c922db
commit
ecc38960f3
2 changed files with 80 additions and 68 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue