mirror of
https://github.com/cheat/cheat.git
synced 2024-11-25 23:41:36 +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 colorization is not configured, exit early
|
||||||
if os.environ.get('CHEATCOLORS') != 'true':
|
if os.environ.get('CHEATCOLORS') != 'true':
|
||||||
return sheet_content
|
return haystack
|
||||||
|
|
||||||
# otherwise, attempt to import the termcolor library
|
# otherwise, attempt to import the termcolor library
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user