X Tutup
Skip to content

Commit 5ee29ea

Browse files
committed
Reprint the last line after rewind so there will be no highlighted parens left.
1 parent 3a1a92b commit 5ee29ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpython/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,8 @@ def undo(self, n=1):
10801080

10811081
self.history = self.history[:-n]
10821082
self.reevaluate()
1083+
# This will unhighlight highlighted parens
1084+
self.print_line(self.s)
10831085

10841086
def enter_hist(self):
10851087
"""Set flags for entering into the history by pressing up/down"""

0 commit comments

Comments
 (0)
X Tutup