mirror of
https://github.com/fadden/6502bench.git
synced 2025-09-25 03:27:01 +00:00
Fix some address region issues
Fixed a crash when the listing is refreshed while a .adrend line is the only thing selected. Fixed .adrend lines being spammed if the last thing before it is a multi-byte item, and you edit a comment / note / label on that line. Harmless, but weird. Also, added keyboard shortcuts in DefSymbol editor, so you can change from address to constant with Alt+C.
This commit is contained in:
@@ -307,7 +307,8 @@ namespace SourceGen {
|
||||
if (lineType == Line.Type.Code || lineType == Line.Type.Data) {
|
||||
lineType = Line.Type.CodeOrData;
|
||||
}
|
||||
if (line.FileOffset == curOffset || lineType == Line.Type.ArEndDirective) {
|
||||
if (line.FileOffset == curOffset ||
|
||||
(tag != null && lineType == Line.Type.ArEndDirective)) {
|
||||
// Another item at same offset. We special-case the arend directive
|
||||
// because it's contained within the previous item, so we want it to be
|
||||
// set on the existing [offset,offset+span) range tag.
|
||||
|
Reference in New Issue
Block a user