1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

lib/frontend/ansi.py: minor fix

This commit is contained in:
Igor Chubin
2019-04-30 22:25:17 +02:00
parent 0f128a91b2
commit 0dda89c108
+1 -1
View File
@@ -90,7 +90,7 @@ def _colorize_ansi_answer(topic, answer, color_style, # pylint: disable=to
def _visualize(answers, request_options, search_mode=False):
highlight = not bool(request_options and request_options.get('no-terminal'))
color_style = request_options.get('style', '')
color_style = (request_options or {}).get('style', '')
if color_style not in COLOR_STYLES:
color_style = ''