Skip to content

Commit a38a22d

Browse files
committed
Reprint line on backspace.
This will fix issue #18.
1 parent ab0cccc commit a38a22d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,9 @@ def p_key(self):
12871287

12881288
if self.c in (chr(127), 'KEY_BACKSPACE'):
12891289
self.bs()
1290+
# Redraw (as there might have been highlighted parens)
1291+
self.print_line('')
1292+
self.print_line(self.s)
12901293
self.complete()
12911294
return ''
12921295

0 commit comments

Comments
 (0)