mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-1359 - Updated the Listing and Byte Viewer to show selection size as the user drags
This commit is contained in:
parent
5047c00359
commit
4cda642e9c
9 changed files with 175 additions and 117 deletions
|
@ -4,9 +4,9 @@
|
|||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -346,6 +346,13 @@ public class AddressSet implements AddressSetView {
|
|||
buffy.append(range);
|
||||
buffy.append(" ");
|
||||
}
|
||||
|
||||
// remove the last space maintain symmetry
|
||||
char lastChar = buffy.charAt(buffy.length() - 1);
|
||||
if (lastChar == ' ') {
|
||||
buffy.deleteCharAt(buffy.length() - 1);
|
||||
}
|
||||
|
||||
buffy.append("]");
|
||||
return buffy.toString();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue