Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz
2023-03-15 06:41:17 -04:00
@@ -1196,7 +1196,7 @@ public class FlatProgramAPI {
* @return the last instruction in the current program
*/
public final Instruction getLastInstruction() {
Address address = currentProgram.getMinAddress();
Address address = currentProgram.getMaxAddress();
InstructionIterator iterator = currentProgram.getListing().getInstructions(address, false);
if (iterator.hasNext()) {
return iterator.next();