fix for prtk history size

This commit is contained in:
Anthony Scopatz 2015-08-26 21:52:32 -04:00
parent 2490c88917
commit b66920b710

View file

@ -33,7 +33,7 @@ def setup_history():
def teardown_history(history):
"""Tears down the history object."""
env = builtins.__xonsh_env__
hsize = env.get('XONSH_HISTORY_SIZE', (8128, 'commands'))
hsize = env.get('XONSH_HISTORY_SIZE', (8128, 'commands'))[0]
hfile = env.get('XONSH_HISTORY_FILE',
os.path.expanduser('~/.xonsh_history'))
try: