GP-6178 fixed byteviewer bug where last byte in program could not be selected

This commit is contained in:
ghidragon
2026-01-22 14:07:09 -05:00
parent 28762369cd
commit 5da3d002ec
2 changed files with 19 additions and 14 deletions

View File

@@ -762,7 +762,7 @@ public class ByteViewerComponent extends FieldPanel
// if the selection ends on a separator line, go back to the end of the previous line
if (indexMap.isBlockSeparatorIndex(lineIndex)) {
lineIndex = lineIndex.subtract(BigInteger.ONE);
fieldNum = fieldFactories.length - 1; // set to end of line factory
fieldNum = fieldFactories.length; // set to end of line factory
}
// if the selection is before the characters in this field, the selection doesn't include