minorfixes

This commit is contained in:
batallion caputa
2026-02-07 16:41:01 -07:00
parent 9962e55820
commit 18475d0570
7 changed files with 146 additions and 72 deletions

View File

@@ -1026,10 +1026,10 @@ private slots:
m_editor->applyDocument(result);
QApplication::processEvents();
// Find header line
// Find a non-root header line (root header has no editable name/type spans)
int headerLine = -1;
for (int i = 0; i < result.meta.size(); i++) {
if (result.meta[i].lineKind == LineKind::Header) {
if (result.meta[i].lineKind == LineKind::Header && !result.meta[i].isRootHeader) {
headerLine = i;
break;
}