mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 05:51:35 +01:00
highlight
bug-fix
Fixed a bug in `cheat/utils.py` that would cause `highlight` to return the wrong value when `CHEATCOLORS` was not set.
This commit is contained in:
parent
7c7278ac8b
commit
ba9051e3cd
@ -8,7 +8,7 @@ def highlight(needle, haystack):
|
||||
|
||||
# if colorization is not configured, exit early
|
||||
if os.environ.get('CHEATCOLORS') != 'true':
|
||||
return sheet_content
|
||||
return haystack
|
||||
|
||||
# otherwise, attempt to import the termcolor library
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user