From f9b42a2b3f0fa5719d13bc54179bb9b5d8315c11 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 3 Jun 2016 15:56:54 +0300 Subject: [PATCH] init.py: use only HISTSIZE, not HISTFILESIZE HISTSIZE give the size in lines, HISTFILESIZE in bytes. --- lib/python/init.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/python/init.py b/lib/python/init.py index 1313c50..7377a26 100644 --- a/lib/python/init.py +++ b/lib/python/init.py @@ -43,15 +43,14 @@ def init(): pass # No such file def savehist(): - histfilesize = os.environ.get('HISTFILESIZE') \ - or os.environ.get('HISTSIZE') - if histfilesize: + histsize = os.environ.get('HISTSIZE') + if histsize: try: - histfilesize = int(histfilesize) + histsize = int(histsize) except ValueError: pass else: - readline.set_history_length(histfilesize) + readline.set_history_length(histsize) readline.write_history_file(histfile) import atexit -- 2.39.5