summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorgalenbwill <galenbwill@users.noreply.github.com>2021-09-14 10:52:42 -0400
committerGalen Williamson <galen@vector35.com>2021-09-14 12:53:50 -0400
commitca1ca4497e8b97d7c30d1ca0cdec75a507ab6a75 (patch)
treeda6f05b6a8ece445432d0e266646aee6accac645 /python
parent24d7fb807512c32f6e36af71fc6c5c7f5e3c2711 (diff)
Fix for issue #2634: adds missing assignment to `DisassemblyTextLine.highlight` attribute when `isinstance(color, _highlight.HighlightColor)` is true
Diffstat (limited to 'python')
-rw-r--r--python/function.py2
1 files changed, 2 insertions, 0 deletions
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))