Fix crash when header line right-clicked

This commit is contained in:
Andy McFadden committed 2025-07-09 20:34:13 -07:00
1 parent c873383c4d
commit 4fe7257399
1 file changed
+5
+5
View File
@@ -2459,6 +2459,11 @@ namespace SourceGen {
internalTargetOffset = externalAddr = -1;
externalSym = null;
if (selOffset < 0) {
// Header comment or equate selected.
return false;
}
Anattrib attr = project.GetAnattrib(selOffset);
if (attr.IsInstructionStart) {
if (!attr.IsInstructionWithOperand) {