diff options
| author | galenbwill <galenbwill@users.noreply.github.com> | 2021-09-14 10:52:42 -0400 |
|---|---|---|
| committer | Galen Williamson <galen@vector35.com> | 2021-09-14 12:53:50 -0400 |
| commit | ca1ca4497e8b97d7c30d1ca0cdec75a507ab6a75 (patch) | |
| tree | da6f05b6a8ece445432d0e266646aee6accac645 /python/function.py | |
| parent | 24d7fb807512c32f6e36af71fc6c5c7f5e3c2711 (diff) | |
Fix for issue #2634: adds missing assignment to `DisassemblyTextLine.highlight` attribute when `isinstance(color, _highlight.HighlightColor)` is true
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 2 |
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)) |
