Skip to content

Commit 0f73a44

Browse files
committed
Made C-u work properly. Also reset highlighted_paren on C-l.
1 parent c73c32e commit 0f73a44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpython/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ def clrtobol(self):
12201220
if not self.cpos:
12211221
self.s = ''
12221222
else:
1223-
self.s = self.s[self.cpos:]
1223+
self.s = self.s[-self.cpos:]
12241224

12251225
self.print_line(self.s, clr=True)
12261226
self.scr.redrawwin()
@@ -1296,6 +1296,7 @@ def p_key(self):
12961296

12971297
elif self.c in ('^L', chr(12)): # C-l
12981298
self.s_hist = [self.s_hist[-1]]
1299+
self.highlighted_paren = None
12991300
self.redraw()
13001301
return ''
13011302

0 commit comments

Comments
 (0)