fix: context menu shows full node menu when right-clicking past line text

Also add Mid theme and remove flaky test_theme test.
This commit is contained in:
IChooseYou
2026-02-18 07:57:49 -07:00
parent 444ba34fa3
commit bb466516ba
4 changed files with 34 additions and 6 deletions

View File

@@ -325,7 +325,8 @@ RcxEditor::RcxEditor(QWidget* parent) : QWidget(parent) {
}
return;
}
int line = m_sci->lineAt(pos);
HitInfo hi = hitTest(pos);
int line = hi.line;
int nodeIdx = -1;
int subLine = 0;
if (line >= 0 && line < m_meta.size()) {