X Tutup
Skip to content

Commit ec293d1

Browse files
committed
Merge
2 parents 412513a + 8799863 commit ec293d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bpython/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,8 @@ def repl(self):
12311231
if inp:
12321232
self.rl_hist.append(inp + '\n')
12331233
more = self.push(inp) or self.paste_mode
1234+
if not more:
1235+
self.s = ''
12341236

12351237
def size(self):
12361238
"""Set instance attributes for x and y top left corner coordinates
@@ -1705,7 +1707,7 @@ def reprint_line(lineno, s, to_replace=[]):
17051707
# Marker found
17061708
tokens[i] = (Parenthesis, value)
17071709
break
1708-
elif opening and under_cursor:
1710+
elif opening and under_cursor and not newline:
17091711
if self.cpos:
17101712
tokens[i] = (Parenthesis.UnderCursor, value)
17111713
else:

0 commit comments

Comments
 (0)
X Tutup