Fix comparing shell_type against both ptk1/2

This commit is contained in:
Morten Enemark Lund 2018-07-19 22:57:26 +02:00
parent 4ad17d8a7c
commit 8df9ac214b

View file

@ -298,7 +298,7 @@ def clean_jobs():
else:
msg = 'there is an unfinished job'
if builtins.__xonsh_env__['SHELL_TYPE'] != 'prompt_toolkit':
if 'prompt_toolkit' not in builtins.__xonsh_env__['SHELL_TYPE']:
# The Ctrl+D binding for prompt_toolkit already inserts a
# newline
print()