Skip to content

Commit 48aea6a

Browse files
committed
Passing in hist_length to save(), so we'll start honoring the history length in the config file.
1 parent 9069471 commit 48aea6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def push(self, s, insert_into_history=True):
750750
self.rl_history.append(s)
751751
if self.config.hist_length:
752752
histfilename = os.path.expanduser(self.config.hist_file)
753-
self.rl_history.save(histfilename, getpreferredencoding())
753+
self.rl_history.save(histfilename, getpreferredencoding(), self.config.hist_length)
754754

755755
more = self.interp.runsource('\n'.join(self.buffer))
756756

0 commit comments

Comments
 (0)