one more reference to prompt_toolkit

This commit is contained in:
adam j hartz 2016-05-28 14:12:58 -04:00
parent cb4dba869b
commit c447f8f010

View file

@ -901,7 +901,7 @@ def expand_gray_colors_for_cmd_exe(style_map):
in cmd.exe.
"""
modified_style = {}
if not ON_WINDOWS or prompt_toolkit is None:
if not ON_WINDOWS or builtins.__xonsh_shell__.stype != 'prompt_toolkit':
return modified_style
for token, idx, rgb in _get_color_indexes(style_map):
if idx == 7 and rgb: