summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--octave_kernel.py3
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]