mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-10-01 17:11:44 -09:00
Merge remote-tracking branch 'origin/GP-1217-dragonmacher-menu-exception'
This commit is contained in:
@@ -169,6 +169,9 @@ abstract class MenuKeyHandler {
|
||||
}
|
||||
|
||||
int itemCount = getItemCount(popup);
|
||||
if (itemCount == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// handle wrapping around to the top again
|
||||
int updatedOffset = offset >= itemCount ? offset % itemCount : offset;
|
||||
|
||||
Reference in New Issue
Block a user