Skip to content
Snippets Groups Projects
Commit 6723fe8c authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[region] fix array in ivette

parent 2f06485e
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,11 @@ function makeRecord( ...@@ -47,7 +47,11 @@ function makeRecord(
if (offset !== rg.offset) if (offset !== rg.offset)
cells.push(`#${rg.offset - offset}b`); cells.push(`#${rg.offset - offset}b`);
offset = rg.offset + rg.length; offset = rg.offset + rg.length;
cells.push({ label: rg.label, port }); const label =
rg.cells < 1 ? `${rg.label} […]` :
rg.cells > 1 ? `${rg.label} [${rg.cells}]` :
rg.label;
cells.push({ label, port });
}); });
if (offset !== sizeof) if (offset !== sizeof)
cells.push(`#${sizeof-offset}b`); cells.push(`#${sizeof-offset}b`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment