From ca1ca4497e8b97d7c30d1ca0cdec75a507ab6a75 Mon Sep 17 00:00:00 2001 From: galenbwill Date: Tue, 14 Sep 2021 10:52:42 -0400 Subject: Fix for issue #2634: adds missing assignment to `DisassemblyTextLine.highlight` attribute when `isinstance(color, _highlight.HighlightColor)` is true --- python/function.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') diff --git a/python/function.py b/python/function.py index 6d7487cb..229fd2f6 100644 --- a/python/function.py +++ b/python/function.py @@ -3053,6 +3053,8 @@ class DisassemblyTextLine: raise ValueError("Specified color is not one of HighlightStandardColor, _highlight.HighlightColor") if isinstance(color, HighlightStandardColor): self.highlight = _highlight.HighlightColor(color) + else: + self.highlight = color def __str__(self): return "".join(map(str, self.tokens)) -- cgit v1.3.1