From ba9051e3cdcdfd3e4abc2db18085728d2cf25908 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Fri, 11 Jan 2019 15:58:21 -0500 Subject: [PATCH] `highlight` bug-fix Fixed a bug in `cheat/utils.py` that would cause `highlight` to return the wrong value when `CHEATCOLORS` was not set. --- cheat/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat/utils.py b/cheat/utils.py index 5c36990..23d75a6 100644 --- a/cheat/utils.py +++ b/cheat/utils.py @@ -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: