Skip to content

Commit

Permalink
Fix bad color limit due to range size
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-k committed Jun 22, 2023
1 parent 049b737 commit 58b9554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/binaryview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class BinaryView extends React.Component<
}

for (const t of tree.children) {
if (t.range.offset() <= byteNumber && byteNumber <= (t.range.offset() + t.range.size())) {
if (t.range.offset() <= byteNumber && byteNumber < (t.range.offset() + t.range.size())) {
if (!t.color.isDefault()) {
color = t.color;
}
Expand Down

0 comments on commit 58b9554

Please sign in to comment.