diff --git a/midenc-debug/src/ui/state.rs b/midenc-debug/src/ui/state.rs index 83f0b0497..06e5c4c85 100644 --- a/midenc-debug/src/ui/state.rs +++ b/midenc-debug/src/ui/state.rs @@ -151,6 +151,7 @@ impl State { .any(|bp| bp.id == candidate) { candidate = next; + next = candidate.wrapping_add(1); continue; } self.next_breakpoint_id = next;