Skip to content

Commit

Permalink
Fix duplicate current instruction highlighting (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-f0 authored Aug 13, 2024
1 parent cfeea9a commit 8bccf5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/context_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def display_code(self) -> None:

current_pc = hex(self.frame.GetPC())
for i, item in enumerate(instructions):
if current_pc in item:
if current_pc in item.split(':')[0]:
output_line(instructions[0])
if i > 3:
print_instruction(instructions[i - 3], TERM_COLORS[self.color_settings.instruction_color])
Expand Down

0 comments on commit 8bccf5c

Please sign in to comment.