Skip to content

Commit 7266234

Browse files
committed
Redraw line on home and end key.
1 parent 5a0d9d6 commit 7266234

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,9 +1500,13 @@ def p_key(self):
15001500

15011501
elif self.c in ("KEY_HOME", '^A', chr(1)): # home or ^A
15021502
self.home()
1503+
# Redraw (as there might have been highlighted parens)
1504+
self.print_line(self.s)
15031505

15041506
elif self.c in ("KEY_END", '^E', chr(5)): # end or ^E
15051507
self.end()
1508+
# Redraw (as there might have been highlighted parens)
1509+
self.print_line(self.s)
15061510

15071511
elif self.c in key_dispatch['C-k']: # cut to buffer
15081512
self.cut_to_buffer()

0 commit comments

Comments
 (0)