Fix root class rename targeting wrong struct when using type selector

RootClassName and RootClassType edit handlers now use m_viewRootId
instead of blindly picking the first root struct. Default name for
unnamed structs changed from <no name> to NoName. Dim the opening
brace on the command row to match the rest of the bar's grey text.
This commit is contained in:
IChooseYou
2026-02-10 08:06:43 -07:00
committed by sysadmin
parent 24a7e68136
commit df566064ba
3 changed files with 41 additions and 17 deletions

View File

@@ -732,6 +732,14 @@ void RcxEditor::applyCommandRowPills() {
if (rn.valid) {
fillIndicatorCols(IND_CLASS_NAME, line, rn.start, rn.end);
}
// Dim trailing opening brace to match the rest of the command row grey
for (int i = t.size() - 1; i >= 0; --i) {
if (t[i] == ' ' || t[i] == '\t') continue;
if (t[i] == '{')
fillIndicatorCols(IND_HEX_DIM, line, i, i + 1);
break;
}
}
// ── Shared inline-edit shutdown ──