diff options
author | Steven Silvester | 2014-08-03 14:16:54 -0500 |
---|---|---|
committer | Steven Silvester | 2014-08-03 14:16:54 -0500 |
commit | ba6eab1203d5184711fec79052a8d323fcf40825 (patch) | |
tree | fa325964e888646161a2dacc58d487895855ca69 | |
parent | 9412b2d538e3a5f992bb893c8692ab03a853b064 (diff) | |
download | scilab_kernel-ba6eab1203d5184711fec79052a8d323fcf40825.tar.gz scilab_kernel-ba6eab1203d5184711fec79052a8d323fcf40825.tar.bz2 scilab_kernel-ba6eab1203d5184711fec79052a8d323fcf40825.zip |
Add max_hist_cache cap to returned value
-rw-r--r-- | octave_kernel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/octave_kernel.py b/octave_kernel.py index 6bf7181..d364be4 100644 --- a/octave_kernel.py +++ b/octave_kernel.py @@ -205,7 +205,8 @@ class OctaveKernel(Kernel): with open(self.hist_file, 'rb') as fid: history = fid.readlines() - self.hist_cache = history[:self.max_hist_cache] + history = history[:self.max_hist_cache] + self.hist_cache = history self.log.debug('**HISTORY:') self.log.debug(history) history = [(None, None, h) for h in history] |