We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b111d commit e46aefaCopy full SHA for e46aefa
1 file changed
bpython/repl.py
@@ -666,9 +666,14 @@ def undo(self, n=1):
666
if len(self.history) < n:
667
n = len(self.history)
668
669
+ entries = list(self.rl_history.entries)
670
+
671
self.history = self.history[:-n]
672
673
self.reevaluate()
674
675
+ self.rl_history.entries = entries
676
677
def reevaluate(self):
678
"""Clear the buffer, redraw the screen and re-evaluate the history"""
679
0 commit comments