From 8bccf5cf03ded07318b1c4a78d6fbbf65ee53b05 Mon Sep 17 00:00:00 2001 From: stephen-f0 <116006802+stephen-f0@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:46:21 +0100 Subject: [PATCH] Fix duplicate current instruction highlighting (#44) --- common/context_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/context_handler.py b/common/context_handler.py index b1ad411..bf84543 100644 --- a/common/context_handler.py +++ b/common/context_handler.py @@ -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])