X Tutup
Skip to content

Commit 8799863

Browse files
committed
Reset indentation after a completed input block.
This will close issue bpython#27.
1 parent 82d9b50 commit 8799863

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
@@ -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

0 commit comments

Comments
 (0)
X Tutup