Skip to content

Commit

Permalink
Merge pull request #1512 from kacperzuk/fix/gui-opcode-selection
Browse files Browse the repository at this point in the history
fix: gui - highlight source code when selecting opcode
  • Loading branch information
iamdefinitelyahuman committed May 15, 2022
2 parents 06b83a4 + 5e724af commit 2a727cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brownie/_gui/opcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def _select_bind(self, event=None):
if "path" not in pcMap:
note.active_frame().clear_highlight()
return
note.set_active(pcMap["path"])
label = self.root.pathMap[pcMap["path"]]
note.set_active(label)
note.active_frame().highlight(*pcMap["offset"])

def _seek(self, event):
Expand Down

0 comments on commit 2a727cf

Please sign in to comment.